#include "/admin/plugins/appointment/appointment/appointment_export.html" />
<@row>
<@columns>
<@appointmentTabs tab='filter' form=form context='app' >
<@tform name='form' id='form' action='jsp/admin/plugins/appointment/ManageAppointments.jsp'>
<@input type='hidden' name='view' value='manageAppointments' />
<@input type='hidden' name='id_form' value='${form.idForm}' />
<@div align='right' params=' style="margin-bottom: 15px;"'>
<@button style='card-control collapse' buttonTargetId='#searchAppointment' title='#i18n{appointment.manageAppointments.labelSearch}' hideTitle=['xs','sm'] buttonIcon='search' size='sm' />
<#if rightDelete?? && rightDelete>
<@button type='submit' id='eraseAll' name='eraseAll' value='eraseAll' disabled=true buttonIcon='trash' title='#i18n{appointment.permission.label.deleteMassAppointment}' color='danger' size='sm' />
#if>
<@aButton params='data-toggle="modal" data-target="#export_modal"' buttonIcon='download' title='#i18n{appointment.permission.label.exportMassAppointment}' size='sm' />
@div>
<@div class='container' id='searchAppointment' params='style="margin-bottom:50px;"'>
<@fieldSet legend='#i18n{appointment.manageAppointments.labelSearch}'>
<@row>
<@columns md=3>
<@formGroup labelFor='lastName' labelKey='${formMessages.fieldLastNameTitle}' rows=2>
<@input type='text' id='lastName' name='lastName' value='${filter.lastName!}' />
@formGroup>
@columns>
<@columns md=3>
<@formGroup labelFor='firstName' labelKey='${formMessages.fieldFirstNameTitle}' rows=2>
<@input type='text' id='firstName' name='firstName' value='${filter.firstName!}'/>
@formGroup>
@columns>
<@columns md=3>
<@formGroup labelFor='email' labelKey='${formMessages.fieldEmailTitle}' rows=2>
<@input type='text' id='email' name='email' value='${filter.email!}' />
@formGroup>
@columns>
<@columns md=3>
<@formGroup labelFor='status' labelKey='#i18n{appointment.labelStatus}' rows=2>
<@select name='status' id='status' items=listStatus default_value='${filter.status!}' />
@formGroup>
@columns>
@row>
<@row id='dates'>
<@columns md=3>
<@formGroup labelFor='startingDateOfSearch' labelKey='#i18n{appointment.manageAppointments.startingDateOfSearch}' rows=2>
<@inputGroup>
<@input type='text' name='startingDateOfSearch' id='startingDateOfSearch' value='${filter.startingDateOfSearch!}' />
<@inputGroupItem type='text'>
<@icon style='calendar' />
@inputGroupItem>
@inputGroup>
@formGroup>
@columns>
<@columns md=3>
<@formGroup labelFor='startingTimeOfSearch' labelKey='#i18n{appointment.labelTo}' rows=2>
<@inputGroup>
<@input type='text' name='startingTimeOfSearch' id='startingTimeOfSearch' value='${filter.startingTimeOfSearch!\'\'}' />
<@inputGroupItem type='text'>
<@icon style='clock-o' />
@inputGroupItem>
@inputGroup>
@formGroup>
@columns>
<@columns md=3>
<@formGroup labelFor='endingDateOfSearch' labelKey='#i18n{appointment.manageAppointments.endingDateOfSearch}' rows=2>
<@inputGroup>
<@input type='text' name='endingDateOfSearch' id='endingDateOfSearch' value='${filter.endingDateOfSearch!}' />
<@inputGroupItem type='text'>
<@icon style='calendar' />
@inputGroupItem>
@inputGroup>
@formGroup>
@columns>
<@columns md=3>
<@formGroup labelFor='endingTimeOfSearch' labelKey='#i18n{appointment.labelTo}' rows=2>
<@inputGroup>
<@input type='text' name='endingTimeOfSearch' id='endingTimeOfSearch' value='${filter.endingTimeOfSearch!\'\'}' />
<@inputGroupItem type='text'>
<@icon style='clock-o' />
@inputGroupItem>
@inputGroup>
@formGroup>
@columns>
@row>
<@row id='error_messages_container' params='style="display:none;"'>
<@alert color='danger' id='error_message'>@alert>
@row>
<@formGroup labelKey=' ' rows=2>
<@button name='Search' type='submit' title='#i18n{appointment.manageAppointments.labelSearch}' buttonIcon='search' />
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&reset=\'true\'' title='#i18n{appointment.displayAppointmentForm.labelReset}' name='Reset' buttonIcon='undo' />
@formGroup>
@fieldSet>
@div>
<#if appointment_list?? && appointment_list?size > 0>
<@table>
|
<@checkBox name='allcheck' id='allCheck' title='#i18n{appointment.appointmentApp.infos}' />
|
#i18n{appointment.manageAppointments.columnLastName}
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=last_name&orderAsc=true' buttonIcon='chevron-up' size='xs' color='default' />
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=last_name&orderAsc=false' buttonIcon='chevron-down' size='xs' color='default' />
|
#i18n{appointment.manageAppointments.columnFirstName}
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=first_name&orderAsc=true' buttonIcon='chevron-up' size='xs' color='default' />
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=first_name&orderAsc=false' buttonIcon='chevron-down' size='xs' color='default' />
|
#i18n{appointment.manageAppointments.columnEmail}
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=email&orderAsc=true' buttonIcon='chevron-up' size='xs' color='default' />
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=email&orderAsc=false' buttonIcon='chevron-down' size='xs' color='default' />
| #i18n{appointment.manageAppointments.columnNbBookedSeats}
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=nbBookedSeats&orderAsc=true' buttonIcon='chevron-up' size='xs' color='default' />
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=nbBookedSeats&orderAsc=false' buttonIcon='chevron-down' size='xs' color='default' />
| #i18n{appointment.dateAppointment.title}
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=date_appointment&orderAsc=true' buttonIcon='chevron-up' size='xs' color='default' />
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=date_appointment&orderAsc=false' buttonIcon='chevron-down' size='xs' color='default' />
|
#i18n{appointment.manageAppointments.columnAdmin}
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=admin&orderAsc=true' buttonIcon='chevron-up' size='xs' color='default' />
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=admin&orderAsc=false' buttonIcon='chevron-down' size='xs' color='default' />
|
#i18n{appointment.labelStatus}
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=status&orderAsc=true' buttonIcon='chevron-up' size='xs' color='default' />
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=status&orderAsc=false' buttonIcon='chevron-down' size='xs' color='default' />
|
#i18n{appointment.manageAppointments.columnState}
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=state&orderAsc=true' buttonIcon='chevron-up' size='xs' color='default' />
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?view=manageAppointments&id_form=${form.idForm}&orderBy=state&orderAsc=false' buttonIcon='chevron-down' size='xs' color='default' />
|
#i18n{portal.util.labelActions} |
<#list appointment_list as appointment >
| <@checkBox name='apmt' id='apmt'+appointment?index value='${appointment.idAppointment}' /> |
${appointment.lastName} |
${appointment.firstName} |
${appointment.email} |
${appointment.nbBookedSeats} |
${appointment.dateOfTheAppointment} #i18n{appointment.labelFrom} ${appointment.startingTime} #i18n{appointment.labelTo} ${appointment.endingTime} |
${appointment.adminUser} |
<#if appointment.isCancelled>
<@tag color='danger'>#i18n{appointment.message.labelStatusUnreserved}@tag>
<#else>
<@tag color='success'>#i18n{appointment.message.labelStatusReserved}@tag>
#if>
|
<#if appointment.state?? && appointment.state.name??>
${appointment.state.name!}
#if>
|
<#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>
<#if appointment.listWorkflowActions?? && appointment.listWorkflowActions?size > 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'>
width="${action.icon.width}" #if><#if action.icon.height!=-1> height="${action.icon.height}"#if>title="${action.name}" alt="${action.name}" />
@aButton>
#list>
#if>
<#if activateWorkflow == "true" >
<#if rightChangeStatus>
<#if appointment.isCancelled>
<@aButton href='jsp/admin/plugins/appointment/ManageAppointments.jsp?action=doChangeAppointmentStatus&id_appointment=${appointment.idAppointment}&status_cancelled=true' title='#i18n{appointment.manageAppointments.labelValidateAppointment}' hideTitle=['all'] buttonIcon='check' size='sm' />
#if>
<#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='close' size='sm' />
#if>
#if>
#if>
<#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' />
#if>
|
#list>
@table>
<#else>#i18n{portal.util.labelNoItem}#if>
<@paginationAdmin paginator=paginator combo=1 form=0 />
@tform>
@appointmentTabs>
@columns>
@row>
<@getDatePickerBootstrap idField="dateAppointment" language=language />