<#include "/admin/plugins/appointment/appointment/appointment_export.html" /> <@appointmentTabs tab='filter' form=form context='app' > <@messages infos=infos![] errors=errors![] warnings=warnings![] /> <@row class='mb-3 align-items-end'> <@columns md=6> <@tform id='quick-search-form' action='jsp/admin/plugins/appointment/ManageAppointments.jsp'> <@input type='hidden' name='view' value='manageAppointments' /> <@input type='hidden' name='id_form' value='${form.idForm}' /> <@input type='hidden' name='firstName' id='quick_firstName' value='${(filter.firstName!)?html}' /> <@input type='hidden' name='email' id='quick_email' value='${(filter.email!)?html}' /> <@input type='hidden' name='phoneNumber' id='quick_phoneNumber' value='${filter.phoneNumber!}' /> <@input type='hidden' name='status' id='quick_status' value='${filter.status!}' /> <@input type='hidden' name='startingDateOfSearch' id='quick_startingDateOfSearch' value='${filter.startingDateOfSearch!}' /> <@input type='hidden' name='startingTimeOfSearch' id='quick_startingTimeOfSearch' value='${filter.startingTimeOfSearch!}' /> <@input type='hidden' name='endingDateOfSearch' id='quick_endingDateOfSearch' value='${filter.endingDateOfSearch!}' /> <@input type='hidden' name='endingTimeOfSearch' id='quick_endingTimeOfSearch' value='${filter.endingTimeOfSearch!}' /> <@formGroup labelFor='quickLastName' labelKey='#i18n{appointment.manageAppointments.columnLastName}' rows=2> <@inputGroup> <@input type='text' id='quickLastName' name='lastName' value='${(filter.lastName!)?html}' /> <@button name='Search' type='submit' title='#i18n{appointment.manageAppointments.labelSearch}' buttonIcon='search' hideTitle=['xs','sm'] /> <@columns md=6> <@div class='d-flex flex-wrap gap-2 justify-content-md-end mb-3'> <@button type='button' title='#i18n{appointment.manageAppointments.labelAdvancedSearch}' buttonIcon='list-search' color='light' params='data-bs-toggle="modal" data-bs-target="#advanced-search-modal"' /> <@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&reset=true' title='#i18n{appointment.displayAppointmentForm.labelReset}' buttonIcon='restore' color='light' /> <@aButton params='data-bs-toggle="modal" data-bs-target="#export_modal"' buttonIcon='download' title='#i18n{appointment.permission.label.exportMassAppointment}' color='light' /> <#if appointment_list?has_content && rightDelete?? && rightDelete><@button type='submit' id='eraseAll' name='eraseAll' value='eraseAll' disabled=true buttonIcon='trash' title='#i18n{appointment.permission.label.deleteMassAppointment}' color='danger' params='form="appointments-form"' /> <@modal id='advanced-search-modal' size='lg'> <@tform id='advanced-search-form' action='jsp/admin/plugins/appointment/ManageAppointments.jsp'> <@input type='hidden' name='view' value='manageAppointments' /> <@input type='hidden' name='id_form' value='${form.idForm}' /> <@modalHeader modalTitle='#i18n{appointment.manageAppointments.labelAdvancedSearch}' /> <@modalBody> <@row> <@columns md=6> <@formGroup labelFor='lastName' labelKey='#i18n{appointment.manageAppointments.columnLastName}' rows=2> <@input type='text' id='lastName' name='lastName' value='${(filter.lastName!)?html}' /> <@columns md=6> <@formGroup labelFor='firstName' labelKey='#i18n{appointment.manageAppointments.columnFirstName}' rows=2> <@input type='text' id='firstName' name='firstName' value='${(filter.firstName!)?html}' /> <@row> <@columns md=6> <@formGroup labelFor='email' labelKey='#i18n{appointment.manageAppointments.columnEmail}' rows=2> <@input type='text' id='email' name='email' value='${(filter.email!)?html}' /> <@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.manageAppointments.columnState}' 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!}' /> <@columns md=6> <@formGroup labelFor='startingTimeOfSearch' labelKey='#i18n{appointment.labelTo}' rows=2> <@input type='time' 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!}' /> <@columns md=6> <@formGroup labelFor='endingTimeOfSearch' labelKey='#i18n{appointment.labelTo}' rows=2> <@input type='time' name='endingTimeOfSearch' id='endingTimeOfSearch' value='${filter.endingTimeOfSearch!}' /> <@alert color='danger' id='search-dates-error' class='d-none'>#i18n{appointment.message.comment.error.endDateBeforeStartDate} <@modalFooter> <@button type='button' title='#i18n{portal.util.labelCancel}' buttonIcon='x' color='light' params='data-bs-dismiss="modal"' /> <@button name='Search' type='submit' title='#i18n{appointment.manageAppointments.labelSearch}' buttonIcon='search' /> <@tform id='appointments-form' action='jsp/admin/plugins/appointment/ManageAppointments.jsp'> <@input type='hidden' name='view' value='manageAppointments' /> <@input type='hidden' name='id_form' value='${form.idForm}' /> <#if appointment_list?has_content> <@table headBody=true class='table-auto-expand table-nowrap'> <@tr> <@th> <@checkBox name='allcheck' id='allCheck' orientation='switch' value='1' wrapperClass='mb-0' title='#i18n{appointment.appointmentApp.infos}' /> <@th> <@span class='fs-6'>#i18n{appointment.manageAppointments.columnLastName} <@sort jsp_url='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}' attribute='last_name' titleAscDesc=['#i18n{appointment.manageAppointments.columnLastName}','#i18n{appointment.manageAppointments.columnLastName}'] /> <@th> <@span class='fs-6'>#i18n{appointment.manageAppointments.columnFirstName} <@sort jsp_url='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}' attribute='first_name' titleAscDesc=['#i18n{appointment.manageAppointments.columnFirstName}','#i18n{appointment.manageAppointments.columnFirstName}'] /> <@th> <@span class='fs-6'>#i18n{appointment.manageAppointments.columnEmail} <@sort jsp_url='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}' attribute='email' titleAscDesc=['#i18n{appointment.manageAppointments.columnEmail}','#i18n{appointment.manageAppointments.columnEmail}'] /> <@th> <@span class='fs-6'>#i18n{appointment.manageAppointments.columnPhoneNumber} <@sort jsp_url='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}' attribute='phone_number' titleAscDesc=['#i18n{appointment.manageAppointments.columnPhoneNumber}','#i18n{appointment.manageAppointments.columnPhoneNumber}'] /> <@th> <@span class='fs-6'>#i18n{appointment.manageAppointments.columnNbBookedSeats} <@sort jsp_url='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}' attribute='nbBookedSeats' titleAscDesc=['#i18n{appointment.manageAppointments.columnNbBookedSeats}','#i18n{appointment.manageAppointments.columnNbBookedSeats}'] /> <@th> <@span class='fs-6'>#i18n{appointment.dateAppointment.title} <@sort jsp_url='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}' attribute='date_appointment' titleAscDesc=['#i18n{appointment.dateAppointment.title}','#i18n{appointment.dateAppointment.title}'] /> <@th> <@span class='fs-6'>#i18n{appointment.manageAppointments.columnAdmin} <@sort jsp_url='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}' attribute='admin' titleAscDesc=['#i18n{appointment.manageAppointments.columnAdmin}','#i18n{appointment.manageAppointments.columnAdmin}'] /> <@th> <@span class='fs-6'>#i18n{appointment.labelStatus} <@sort jsp_url='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}' attribute='status' titleAscDesc=['#i18n{appointment.labelStatus}','#i18n{appointment.labelStatus}'] /> <@th> <@span class='fs-6'>#i18n{appointment.manageAppointments.columnState} <@sort jsp_url='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}' attribute='state' titleAscDesc=['#i18n{appointment.manageAppointments.columnState}','#i18n{appointment.manageAppointments.columnState}'] /> <@th><@span class='fs-6'>#i18n{portal.util.labelActions} <@th> <@span class='fs-6'>#i18n{appointment.manageAppointments.columnDateAppointmentTaken} <@sort jsp_url='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}' attribute='date_appointment' titleAscDesc=['#i18n{appointment.manageAppointments.columnDateAppointmentTaken}','#i18n{appointment.manageAppointments.columnDateAppointmentTaken}'] /> <@tableHeadBodySeparator /> <#list appointment_list as appointment> <@tr> <@td><@checkBox name='apmt' id='apmt'+appointment?index value='${appointment.idAppointment}' orientation='switch' wrapperClass='mb-0'/> <@td class='fs-5'>${appointment.lastName?html} <@td class='fs-5'>${appointment.firstName?html} <@td class='fs-5'>${appointment.email?html} <@td class='fs-5'>${appointment.phoneNumber!} <@td class='fs-5'>${appointment.nbBookedSeats} <@td class='fs-5'>${appointment.dateOfTheAppointment} #i18n{appointment.labelFrom} ${appointment.startingTime} #i18n{appointment.labelTo} ${appointment.endingTime} <@td class='fs-5'>${appointment.adminUser} <@td> <#if appointment.isCancelled> <@tag color='danger'>#i18n{appointment.message.labelStatusUnreserved} <#else> <@tag color='success'>#i18n{appointment.message.labelStatusReserved} <@td class='fs-5'><#if appointment.state?? && appointment.state.name??>${appointment.state.name!} <@td> <#if rightView?? && rightView> <@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=viewAppointment&id_form=${form.idForm}&id_appointment=${appointment.idAppointment}' title='#i18n{appointment.manageAppointments.labelViewAppointment}' hideTitle=['all'] buttonIcon='eye' size='sm' /> <#if appointment.listWorkflowActions?? && appointment.listWorkflowActions?size gt 0> <#list appointment.listWorkflowActions as action> <@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=viewWorkflowActionForm&id_action=${action.id}&id_appointment=${appointment.idAppointment}' size='sm'> <#assign imgParams><#if action.icon.width!=-1> width="${action.icon.width}" <#if action.icon.height!=-1> height="${action.icon.height}" <@img url='image?resource_type=workflow_icon_img&id=${action.icon.id}' params=imgParams title=action.name alt=action.name /> <#if activateWorkflow == "true"> <#if rightChangeStatus> <#if appointment.isCancelled> <@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?action=doChangeAppointmentStatus&id_appointment=${appointment.idAppointment}&status_cancelled=false' title='#i18n{appointment.manageAppointments.labelValidateAppointment}' hideTitle=['all'] buttonIcon='check' size='sm' /> <#if !appointment.isCancelled> <@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?action=doChangeAppointmentStatus&id_appointment=${appointment.idAppointment}&status_cancelled=true' title='#i18n{appointment.labelCancelAppointment}' hideTitle=['all'] buttonIcon='x' size='sm' color='light' /> <#if rightDelete?? && rightDelete> <@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?action=confirmRemoveAppointment&id_form=${form.idForm}&id_appointment=${appointment.idAppointment}' title='#i18n{portal.util.labelDelete}' hideTitle=['all'] buttonIcon='trash' size='sm' color='danger' /> <@td class='fs-5'>${appointment.formattedDateAppointmentTaken} <@paginationAdmin paginator=paginator combo=1 form=0 /> <#else> <@card> <@empty title='#i18n{portal.util.labelNoItem}' iconName='calendar-off' />