<#assign tab> <#-- <@aButton href='jsp/admin/plugins/appointment/ManageAppointmentSlots.jsp' id='btn-new-typicalweek-2' buttonIcon='calendar-plus' color='action' size='sm' title='#i18n{appointment.typicalWeek.buttonLabelCreate}' /> --> <@tform type='inline' action='jsp/admin/plugins/appointment/ManageAppointmentSlots.jsp' params='enctype="multipart/form-data"' > <@input type='hidden' name='id_form' value='${appointmentform.idForm}' /> <@input type='hidden' name='view_manageTypicalWeek' value='' /> <@button type='submit' id='btn-new-typicalweek' color='action' size='sm' buttonIcon='calendar-plus' title='#i18n{appointment.typicalWeek.buttonLabelCreate}' /> <@appointmentTabs tab='typicalWeek' form=appointmentform context='slot' tabBtn=tab> <@messages errors=errors infos=infos/> <@row> <@columns md=9> <@div id="appointment_search"> <#if id_reservation_rule != 0 > <@tform action='jsp/admin/plugins/appointment/ManageAppointmentSlots.jsp' params='enctype="multipart/form-data"' class='mb-3'> <@input type='hidden' id='is_multislot_appointment' name='is_multislot_appointment' value='${appointmentform.isMultislotAppointment?then("true", "false")}'/> <@input type='hidden' id='bo_overbooking' name='bo_overbooking' value='${appointmentform.boOverbooking?then("true", "false")}'/> <@fieldSet legend='#i18n{appointment.modifyAppointmentForm.titleAlterablesParameters}'> <@formGroup labelFor='name' labelKey='#i18n{appointment.createAppointmentForm.labelName}' mandatory=true> <@input type='text' name='name' id='name' value='${appointmentform.name!\'\'}' maxlength=50 /> <@formGroup labelFor='descriptionRule' labelKey='#i18n{appointment.createAppointmentForm.labelDescriptionRule}' mandatory=true> <@input type='textarea' name='description_rule' id='description_rule' maxlength=255 >${appointmentform.descriptionRule!} <#if !appointmentform.isMultislotAppointment > <@formGroup labelFor='max_people_per_appointment' labelKey='#i18n{appointment.createAppointmentForm.labelMaxPeoplePerAppointment}' helpKey='#i18n{appointment.createAppointmentForm.labelMaxPeoplePerAppointment.help}' mandatory=true> <@input type='number' name='max_people_per_appointment' id='max_people_per_appointment' value=appointmentform.maxPeoplePerAppointment!'' maxlength=3 /> <@formGroup labelFor='color' labelKey='#i18n{appointment.createAppointmentForm.labelColor}' mandatory=true> <@input type='color' id='color' class='p-2' name='color' value=appointmentform.color!'#3769D9' params='style="width:50px;height:50px"'/> <@formGroup> <@button type='submit' name='action_modifyGlobalParameters' title='#i18n{portal.util.labelModify}' buttonIcon='check' /> <@aButton href='jsp/admin/plugins/appointment/ManageAppointmentSlots.jsp?view=manageTypicalWeek&id_form=${appointmentform.idForm}&id_reservation_rule=${id_reservation_rule}' buttonIcon='times' title='#i18n{portal.util.labelCancel}' color='light' /> <#if canUpdateAdvancedParam > <@tform action='jsp/admin/plugins/appointment/ManageAppointmentSlots.jsp' params='enctype="multipart/form-data"'> <@input type='hidden' name='id_form' value='${appointmentform.idForm}' /> <@input type='hidden' id='bo_overbooking' name='bo_overbooking' value='${appointmentform.boOverbooking?then("true", "false")}'/> <@input type='hidden' id='is_multislot_appointment' name='is_multislot_appointment' value='${appointmentform.isMultislotAppointment?then("true", "false")}'/> <@input type='hidden' id='enableMandatoryEmail' name='enableMandatoryEmail' value='${appointmentform.enableMandatoryEmail?then("true", "false")}'/> <@input type='hidden' name='view_manageAppointmentForms' value='' /> <#if id_reservation_rule != 0 ><@input type='hidden' name='action_modifyAdvancedParameters' value='' /><#else><@input type='hidden' name='action_createTypicalWeek' value='' /> <@fieldSet legend='#i18n{appointment.modifyAppointmentForm.titleStructuralsParameters}'> <@row> <#if id_reservation_rule == 0 > <@columns md=6> <@formGroup labelFor='name' labelKey='#i18n{appointment.createAppointmentForm.labelName}' mandatory=true> <@input type='text' name='name' id='name' value='${appointmentform.name!\'\'}' maxlength=50 /> <@formGroup labelFor='descriptionRule' labelKey='#i18n{appointment.createAppointmentForm.labelDescriptionRule}' mandatory=true> <@input type='textarea' name='description_rule' id='description_rule' maxlength=255 >${appointmentform.descriptionRule!} <#if !appointmentform.isMultislotAppointment > <@columns md=6> <@formGroup labelFor='max_people_per_appointment' labelKey='#i18n{appointment.createAppointmentForm.labelMaxPeoplePerAppointment}' helpKey='#i18n{appointment.createAppointmentForm.labelMaxPeoplePerAppointment.help}' mandatory=true> <@input type='number' name='max_people_per_appointment' id='max_people_per_appointment' value=appointmentform.maxPeoplePerAppointment!'' maxlength=3 /> <@columns md=6> <@formGroup labelFor='color' labelKey='#i18n{appointment.createAppointmentForm.labelColor}' mandatory=true> <@input type='color' id='color' class='p-2' name='color' value=appointmentform.color!'#3769D9' params='style="width:50px;height:50px"'/> <@columns md=6> <@formGroup labelFor='duration_appointments' labelKey='#i18n{appointment.createAppointmentForm.labelDurationAppointments}' helpKey='#i18n{appointment.createAppointmentForm.labelDurationAppointments.help}' mandatory=true> <@input type='number' name='duration_appointments' id='duration_appointments' value=appointmentform.durationAppointments!'' maxlength=3 /> <@columns md=6> <@formGroup labelFor='max_capacity_per_slot' labelKey='#i18n{appointment.createAppointmentForm.labelMaxCapacityPerSlot}' helpKey='#i18n{appointment.createAppointmentForm.labelMaxCapacityPerSlot.help}' mandatory=true> <@input type='number' name='max_capacity_per_slot' id='max_capacity_per_slot' value=appointmentform.maxCapacityPerSlot!'' maxlength=3 /> <@columns md=6> <@formGroup labelFor='time_start' labelKey='#i18n{appointment.createAppointmentForm.labelTimeStart}' helpKey='#i18n{appointment.createAppointmentForm.labelTimeStart.help}' mandatory=true> <@inputGroup> <@inputGroupItem type='text'><@icon style='clock' /> <@input type='text' name='time_start' id='time_start' value=appointmentform.timeStart!'' /> <@columns md=6> <@formGroup labelFor='time_end' labelKey='#i18n{appointment.createAppointmentForm.labelTimeEnd}' helpKey='#i18n{appointment.createAppointmentForm.labelTimeEnd.help}' mandatory=true> <@inputGroup> <@inputGroupItem type='text'><@icon style='clock' /> <@input type='text' name='time_end' id='time_end' value=appointmentform.timeEnd!'' /> <@columns md=6> <@formGroup labelFor='is_open_monday'> <@checkBox orientation='switch' labelKey='#i18n{appointment.label.OpenMonday}' name='is_open_monday' id='is_open_monday' value='true' checked=appointmentform.isOpenMonday!false /> <@formGroup labelFor='is_open_tuesday'> <@checkBox orientation='switch' labelKey='#i18n{appointment.label.OpenTuesday}' name='is_open_tuesday' id='is_open_tuesday' value='true' checked=appointmentform.isOpenTuesday!false /> <@formGroup labelFor='is_open_wednesday'> <@checkBox orientation='switch' labelKey='#i18n{appointment.label.OpenWednesday}' name='is_open_wednesday' id='is_open_wednesday' value='true' checked=appointmentform.isOpenWednesday!false /> <@formGroup labelFor='is_open_thursday'> <@checkBox orientation='switch' labelKey='#i18n{appointment.label.OpenThursday}' name='is_open_thursday' id='is_open_thursday' value='true' checked=appointmentform.isOpenThursday!false /> <@formGroup labelFor='is_open_friday'> <@checkBox orientation='switch' labelKey='#i18n{appointment.label.OpenFriday}' name='is_open_friday' id='is_open_friday' value='true' checked=appointmentform.isOpenFriday!false /> <@formGroup labelFor='is_open_saturday'> <@checkBox orientation='switch' labelKey='#i18n{appointment.label.OpenSaturday}' name='is_open_saturday' id='is_open_saturday' value='true' checked=appointmentform.isOpenSaturday!false /> <@formGroup labelFor='is_open_sunday'> <@checkBox orientation='switch' labelKey='#i18n{appointment.label.OpenSunday}' name='is_open_sunday' id='is_open_sunday' value='true' checked=appointmentform.isOpenSunday!false /> <#if id_reservation_rule != 0 ><@button type='submit' title='#i18n{portal.util.labelModify}' buttonIcon='check' /><#else><@button type='submit' title='#i18n{portal.util.labelCreate}' buttonIcon='check' /> <@aButton href='jsp/admin/plugins/appointment/ManageAppointmentSlots.jsp?view=manageTypicalWeek&id_form=${appointmentform.idForm}&id_reservation_rule=${id_reservation_rule}' buttonIcon='times' title='#i18n{portal.util.labelCancel}' color='light' /> <@div id='calendar' class='mt-5'> <@columns md=3> <#if listReservationRule??> <#assign active=false > <#assign idx=0 > <@listGroup> <#list listReservationRule as item> <#assign py=2 > <#if id_reservation_rule?number=item.idReservationRule?number><#assign active=true ><#assign py=1 ><#else><#assign active=false > <@listGroupItem class='d-flex align-items-center justify-content-between w-100 py-${py}' active=active> <@span> <@icon style='calendar-week' class='me-2' params='style="color:${item.color!};"' /> <@link href='jsp/admin/plugins/appointment/ManageAppointmentSlots.jsp?view=manageTypicalWeek&id_form=${appointmentform.idForm}&id_reservation_rule=${item.idReservationRule}' label='${item.name}' /> <#if active=true> <@tform type='inline' class='typical-week-edit' action='jsp/admin/plugins/appointment/ManageAppointmentSlots.jsp?view=manageTypicalWeek' params='enctype="multipart/form-data"'> <@input type='hidden' name='id_form' value='${appointmentform.idForm}' /> <@input type='hidden' name='id_reservation_rule' value='${item.idReservationRule}' /> <@button type='button' class='btn-editappsearch' buttonIcon='pencil' color='primary btn-ghost' size='sm' title='#i18n{portal.util.labelModify}' hideTitle=['all'] /> <@button type='submit' name='action_copyTypicalWeek' title='#i18n{appointment.manageAppointmentForms.labelCopy}' hideTitle=['all'] buttonIcon='copy' color='action' /> <@button type='submit' name='action_confirmRemoveParameter' title='#i18n{portal.util.labelDelete}' hideTitle=['all'] buttonIcon='trash' color='danger btn-ghost' size='sm' /> <#assign idx++ > <@modal id='updatePlanningSlot'> <@modalBody> <@tform action='jsp/admin/plugins/appointment/ManageAppointmentSlots.jsp'> <@input type="hidden" name="action" value="doModifyTimeSlot" /> <@input type="hidden" id="idTimeSlot" name="id_time_slot" value="" /> <@input type="hidden" id="idWorkingDay" name="id_working_day" value="" /> <@input type="hidden" id="timeForm" name="id_form" value="${appointmentform.idForm}" /> <@input type="hidden" name="id_reservation_rule" value="${id_reservation_rule}" /> <@formGroup labelKey='#i18n{appointment.modifySlot.labelDate}' rows=2> <@p id='dtSlot'> <@formGroup labelKey='' helpKey='#i18n{appointment.modifySlot.labelOpenHelp}' rows=2> <@checkBox orientation='switch' name='is_open' id='timeIsOpen' value='true' labelKey='#i18n{appointment.modifySlot.labelOpen}' /> <@formGroup labelFor='maxCapacity' labelKey='#i18n{appointment.modifySlot.labelMaxCapacityForThisSlot}' mandatory=true rows=2> <@input type='number' name='max_capacity' id='maxCapacity' value='' min=0 max=99 maxlength=3 /> <@formGroup labelKey='#i18n{appointment.model.entity.appointmentform.attribute.timeStart}' rows=2> <@staticText id='timeStart'> <@formGroup labelFor='timeEnd' labelKey='#i18n{appointment.model.entity.appointmentform.attribute.timeEnd}' helpKey='#i18n{appointment.modifySlot.helpModifyEndSlot}' mandatory=true rows=2> <@inputGroup> <@input type='time' id='timeEnd' name='ending_time' value='' /> <@inputGroupItem type='text'> <@icon style='clock' /> <@formGroup labelFor='shift_slot' rows=2> <@radioButton labelFor='shift_slotok' labelKey='#i18n{appointment.modifySlot.notShiftSlot}' id='shift_slotok' name='shift_slot' value='false' checked=true /> <@radioButton labelFor='shift_slotnok' labelKey='#i18n{appointment.modifySlot.shiftSlot}' id='shift_slotnok' name='shift_slot' value='true' /> <@formGroup rows=2> <@button type='submit' title='#i18n{portal.util.labelModify}' buttonIcon='check' /> <@aButton href='jsp/admin/plugins/appointment/ManageAppointmentSlots.jsp?view=manageTypicalWeek&id_form=${appointmentform.idForm}&id_reservation_rule=${id_reservation_rule}' buttonIcon='times' title='#i18n{portal.util.labelCancel}' color='light' /> <@modal id='updatePlanningMultiSlot'> <@modalBody> <@tform action="jsp/admin/plugins/appointment/ManageAppointmentSlots.jsp"> <@input type="hidden" name="action" value="doModifyListTimeSlot" /> <@input type="hidden" id="timeForm" name="id_form" value="${appointmentform.idForm}" /> <@input type="hidden" name="id_reservation_rule" value="${id_reservation_rule}" /> <@input type="hidden" id="timeSlotData" name="timeSlotData" value="" /> <@formGroup labelKey='#i18n{appointment.modifySlot.labelSlotStatus}' helpKey='#i18n{appointment.modifySlot.labelOpenHelp}' rows=2> <@radioButton orientation='inline' labelFor='shift_slot_open' id='shift_slot_open' labelKey='#i18n{appointment.modifySlot.labelOpen}' name='is_open' value='true' /> <@radioButton orientation='inline' labelFor='shift_slot_close' id='shift_slot_close' labelKey='#i18n{appointment.modifySlot.labelClose}' name='is_open' value='false' /> <@radioButton orientation='inline' labelFor='shift_slot_null' id='shift_slot_null' labelKey='#i18n{appointment.modifySlot.labelNoValue}' name='is_open' value='' checked=true /> <@formGroup rows=2> <@radioButton labelFor='var_cap' labelKey='#i18n{appointment.modifySlot.labelCapacityChange}' name='capacity' id='var_cap' checked=true value='var_cap' /> <@radioButton labelFor='new_cap' labelKey='#i18n{appointment.modifySlot.labelNewCapacity}' name='capacity' id='new_cap' value='new_cap' /> <@input type='number' id='newCapacity' name='max_capacity' value='0' min=-99 max=99 /> <@formGroup rows=2> <@button type='submit' color='primary' title='#i18n{portal.util.labelValidate}' /> <@button color='light' title='#i18n{portal.util.labelCancel}' params='data-bs-dismiss="modal" aria-label="#i18n{portal.util.labelCancel}"' />