<#assign dashboardCreate><#if permission_create=="true"><@aButton href='jsp/admin/plugins/appointment/ManageAppointmentForms.jsp?view=createAppointmentForm' buttonIcon='plus' title='#i18n{appointment.manageAppointmentForms.buttonAdd}' hideTitle=['all'] size='sm' /> <@adminDashboardWidget title='#i18n{appointment.manage.appointmentforms.title}' id='appointment_dashboard_card' url=url boxIcon='calendar-event' headerActions=dashboardCreate flush=true> <#if appointmentform_list?has_content> <@listGroup class='list-group-flush'> <#list appointmentform_list as appointmentform> <#assign permission = permissions[appointmentform?index] /> <@li class='list-group-item'> <@row class='align-items-center g-2'> <@div class='col text-truncate'> <#if appointmentform.isActive><@icon style='check' class='text-success fs-2' title='#i18n{portal.util.labelEnabled}' /><#else><@icon style='x' class='text-danger fs-2' title='#i18n{portal.util.labelDisabled}' /> <#if permission[2]=="true"> <@link href='jsp/admin/plugins/appointment/ManageAppointmentForms.jsp?view=modifyAppointmentForm&id_form=${appointmentform.idForm}' label=appointmentform.title class='text-reset fw-semibold' title='#i18n{portal.util.labelModify} ${appointmentform.title}' /> <#else> <@span class="text-reset fw-semibold">${appointmentform.title} <@div class='col-auto btn-actions'> <#if permission[0]=="true"> <@link href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=viewCalendarManageAppointment&id_form=${appointmentform.idForm}' title='#i18n{appointment.manageAppointmentForms.labelManageAppointments}' hideLabel=['all'] linkIcon='calendar' class='btn-action' /> <#if permission[1]=="true"> <#if appointment_desk_available?? && appointment_desk_available> <#assign manageUrl='jsp/admin/plugins/appointment/modules/desk/ManageAppointmentDesks.jsp?plugin_name=appointment-desk&id_form=' /> <#else> <#assign manageUrl='jsp/admin/plugins/appointment/ManageAppointmentSlots.jsp?view=manageTypicalWeek&id_form=' /> <@link href='${manageUrl}${appointmentform.idForm}&context=slot' title='#i18n{appointment.manageAppointmentForms.labelPlanning}' hideLabel=['all'] linkIcon='clock' class='btn-action' /> <@button dropdownMenu=true title='#i18n{portal.util.labelActions}' hideTitle=['all'] buttonIcon='dots' size='sm' params="data-bs-popper-config='{\"strategy\":\"fixed\"}'"> <#if appointmentform.isActive> <@link class='dropdown-item' linkIcon='calendar-share' href='${baseUrl!}jsp/site/Portal.jsp?page=appointment&view=getViewAppointmentCalendar&id_form=${appointmentform.idForm}' target='_blank' label='#i18n{appointment.manageAppointmentForms.labelViewCalendar}' /> <#if permission[2]=="true"> <@link class='dropdown-item' linkIcon='settings' href='jsp/admin/plugins/appointment/ManageAppointmentForms.jsp?view=modifyAppointmentForm&id_form=${appointmentform.idForm}' label='#i18n{appointment.manageAppointmentForms.labelConfig}' /> <#if permission[3]=="true"> <@link class='dropdown-item' linkIcon='message' href='jsp/admin/plugins/appointment/ManageAppointmentForms.jsp?view=modifyAppointmentFormMessages&id_form=${appointmentform.idForm}' label='#i18n{appointment.manageAppointmentForms.labelModifyMessages}' /> <#if permission_create=="true"> <@link class='dropdown-item' linkIcon='copy' href='jsp/admin/plugins/appointment/ManageAppointmentForms.jsp?action=doCopyAppointmentForm&id_form=${appointmentform.idForm}' label='#i18n{appointment.manageAppointmentForms.labelCopy}' /> <#if permission[4]=="true"> <#if appointmentform.isActive> <@link class='dropdown-item text-warning' linkIcon='x' href='jsp/admin/plugins/appointment/ManageAppointmentForms.jsp?action=doChangeFormActivation&id_form=${appointmentform.idForm}' label='#i18n{appointment.manageAppointmentForms.labelDisable}' /> <#else> <@link class='dropdown-item text-success' linkIcon='check' href='jsp/admin/plugins/appointment/ManageAppointmentForms.jsp?action=doChangeFormActivation&id_form=${appointmentform.idForm}' label='#i18n{appointment.manageAppointmentForms.labelEnable}' /> <#if permission[5]=="true"> <@link class='dropdown-item text-danger' linkIcon='trash' href='jsp/admin/plugins/appointment/ManageAppointmentForms.jsp?action=confirmRemoveAppointmentForm&id_form=${appointmentform.idForm}' label='#i18n{portal.util.labelDelete}' /> <#if nb_forms gt appointmentform_list?size> <@li class='list-group-item text-center'> <@link href=url label='#i18n{appointment.dashboard.seeAll} (${nb_forms})' /> <#elseif permission_create=="true"> <@empty title='#i18n{appointment.manage.appointmentforms.empty}' iconName='calendar-off' actionTitle='#i18n{appointment.manageAppointmentForms.buttonAdd}' actionUrl='jsp/admin/plugins/appointment/ManageAppointmentForms.jsp?view=createAppointmentForm' /> <#else> <@empty title='#i18n{appointment.manage.appointmentforms.empty}' iconName='calendar-off' />