<#include "/admin/plugins/appointment/modules/management/multiview_export.html" /> <#include "/admin/plugins/appointment/appointment_commons.html" /> <#assign jspUrl = 'jsp/admin/plugins/appointment/modules/management/MultiviewAppointment.jsp?view=multiview_appointments' /> <#macro sortableHeader labelKey attribute type='text'> <@th> <@span class='fs-6'>#i18n{${labelKey}} <@sort jsp_url=jspUrl attribute=attribute type=type /> <@commonsAppJS /> <@pageContainer> <@pageColumn> <@pageHeader title='#i18n{module.appointment.management.multiview.appointment.pageTitle}'> <@button style='card-control collapse' buttonTargetId='#searchAppointment' title='#i18n{appointment.manageAppointments.labelSearch}' hideTitle=['xs','sm'] buttonIcon='search' color='light' /> <@aButton params='data-bs-toggle="modal" data-bs-target="#export_modal"' buttonIcon='download' title='#i18n{appointment.permission.label.exportMassAppointment}' color='primary' /> <@messages errors=(errors![]) warnings=(warnings![]) infos=(infos![]) /> <@div id='searchAppointment' class='collapse'> <@tform name='form' id='form' action='jsp/admin/plugins/appointment/modules/management/MultiviewAppointment.jsp' boxed=true> <@input type='hidden' name='view' value='multiview_appointments' /> <@fieldSet legend='#i18n{appointment.manageAppointments.labelSearch}'> <@row> <@columns md=6> <@formGroup labelFor='idForm' labelKey='#i18n{module.appointment.management.multiview.columnFormTitle}' rows=2> <@select name='idForm' id='idForm' items=listForms default_value='${filter.idForm!}' /> <@columns md=6> <@formGroup labelFor='idCategory' labelKey='#i18n{module.appointment.management.multiview.columnCategory}' rows=2> <@select name='idCategory' id='idCategory' items=listCategories default_value='${filter.idCategory!}' /> <@row> <@columns md=6> <@formGroup labelFor='lastName' labelKey='#i18n{appointment.manageAppointments.columnLastName}' rows=2> <@input type='text' id='lastName' name='lastName' value='${filter.lastName!}' /> <@columns md=6> <@formGroup labelFor='firstName' labelKey='#i18n{appointment.manageAppointments.columnFirstName}' rows=2> <@input type='text' id='firstName' name='firstName' value='${filter.firstName!}' /> <@row> <@columns md=6> <@formGroup labelFor='email' labelKey='#i18n{appointment.manageAppointments.columnEmail}' rows=2> <@input type='text' id='email' name='email' value='${filter.email!}' /> <@columns md=6> <@formGroup labelFor='phoneNumber' labelKey='#i18n{appointment.manageAppointments.columnPhoneNumber}' rows=2> <@input type='text' id='phoneNumber' name='phoneNumber' value='${filter.phoneNumber!}' /> <@formGroup labelFor='status' labelKey='#i18n{appointment.labelStatus}' rows=2> <@select name='status' id='status' items=listStatus default_value='${filter.status!}' /> <@row> <@columns md=6> <@formGroup labelFor='startingDateOfSearch' labelKey='#i18n{appointment.manageAppointments.startingDateOfSearch}' rows=2> <@input type='date' name='startingDateOfSearch' id='startingDateOfSearch' value='${filter.startingDateOfSearch!}' language=language /> <@columns md=6> <@formGroup labelFor='startingTimeOfSearch' labelKey='#i18n{appointment.labelTo}' rows=2> <@input type='html5time' name='startingTimeOfSearch' id='startingTimeOfSearch' value='${filter.startingTimeOfSearch!}' /> <@row> <@columns md=6> <@formGroup labelFor='endingDateOfSearch' labelKey='#i18n{appointment.manageAppointments.endingDateOfSearch}' rows=2> <@input type='date' name='endingDateOfSearch' id='endingDateOfSearch' value='${filter.endingDateOfSearch!}' language=language /> <@columns md=6> <@formGroup labelFor='endingTimeOfSearch' labelKey='#i18n{appointment.labelTo}' rows=2> <@input type='html5time' name='endingTimeOfSearch' id='endingTimeOfSearch' value='${filter.endingTimeOfSearch!}' /> <@alert color='danger' id='error_message' params='hidden'>#i18n{module.appointment.management.multiview.errorEndBeforeStart} <@formGroup rows=2> <@button type='submit' name='Search' buttonIcon='search' title='#i18n{appointment.manageAppointments.labelSearch}' /> <@aButton href='${jspUrl}&reset=true' buttonIcon='refresh' title='#i18n{appointment.displayAppointmentForm.labelReset}' color='light' /> <@box> <@boxBody> <#if appointment_list?has_content> <@paginationAdmin paginator=paginator /> <@table headBody=true class='table-nowrap'> <@tr> <@th><@span class='fs-6'>#i18n{module.appointment.management.multiview.columnCategory} <@th><@span class='fs-6'>#i18n{module.appointment.management.multiview.columnFormTitle} <@sortableHeader labelKey='appointment.manageAppointments.columnLastName' attribute='last_name' /> <@sortableHeader labelKey='appointment.manageAppointments.columnFirstName' attribute='first_name' /> <@sortableHeader labelKey='appointment.manageAppointments.columnEmail' attribute='mail' /> <@sortableHeader labelKey='appointment.manageAppointments.columnPhoneNumber' attribute='phone_number' /> <@sortableHeader labelKey='appointment.manageAppointments.columnNbBookedSeats' attribute='nb_seats_int' type='number' /> <@sortableHeader labelKey='appointment.dateAppointment.title' attribute='start_date' type='date' /> <@sortableHeader labelKey='appointment.labelStatus' attribute='cancelled' /> <@th><@span class='fs-6'>#i18n{appointment.manageAppointments.columnState} <@th><@span class='fs-6'>#i18n{portal.util.labelActions} <@tableHeadBodySeparator /> <#list appointment_list as appointment> <@tr> <@td>${appointment.categoryTitle!} <@td>${appointment.formTitle} <@td>${appointment.lastName} <@td>${appointment.firstName} <@td>${appointment.mail} <@td>${appointment.phoneNumber!} <@td>${appointment.nbSeats} <@td>${appointment.dateOfTheAppointment} #i18n{appointment.labelFrom} ${appointment.startingTime} #i18n{appointment.labelTo} ${appointment.endingTime} <@td> <#if appointment.cancelled> <@tag color='danger'>#i18n{appointment.message.labelStatusUnreserved} <#else> <@tag color='success'>#i18n{appointment.message.labelStatusReserved} <@td>${appointment.stateTitle!} <@td> <@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=viewAppointment&id_form=${appointment.idForm}&id_appointment=${appointment.idAppointment}' title='#i18n{appointment.manageAppointments.labelViewAppointment}' hideTitle=['all'] buttonIcon='eye' size='sm' params='target="_blank"' /> <@paginationAdmin paginator=paginator combo=1 /> <#else> <@empty title='#i18n{portal.util.labelNoItem}' iconName='calendar-off' />