<@cTpl> <@cSection class='lutece-appointment'> <@cRow> <@cCol> <@cBreadCrumb home='#i18n{portal.util.labelHome}'> <@chItem class='breadcrumb-item active' params='aria-current="page"'>${form.title} <#assign i = appointment.slot?size> <#assign stepFormTitle><#if form.displayTitleFo && form.title != "">${form.title}<#else>#i18n{appointment.appointmentApp.defaultTitle} <#assign stepTwoHref>jsp/site/Portal.jsp?page=appointment&view=getViewAppointmentCalendar&id_form=${form.idForm}<#if nbPlacesToTake?? && nbPlacesToTake != 0>&nbPlacesToTake=${nbPlacesToTake!}&date_of_display=${date_of_display}&start_time=${appointment.slot[0].startingTime}&end_time=${appointment.slot[i - 1].endingTime}#step2 <@cStepDone step='1' title=stepFormTitle idx=0 actionName=''> ${form.description!} <@cStepDone step='2' title='#i18n{appointment.appointmentApp.choiceOfDate}' idx=1 actionHref=stepTwoHref actionLabel='#i18n{portal.util.labelModify}'> <@chList> <@chItem>#i18n{appointment.labelThe} ${appointment.dateOfTheAppointment} #i18n{appointment.labelFrom} ${appointment.slot[0].startingTime} #i18n{appointment.labelTo} ${appointment.slot[i - 1].endingTime} <@cStepCurrent step='3' title='#i18n{appointment.appointmentApp.enteringInformation}' showPrevStep=false > <@cRow> <@cCol> <@cBlock id='messageview'> <@cForm id='form-validate' action='jsp/site/Portal.jsp' method='post' enctype='multipart/form-data' params='role="form"'> <@cInput type='hidden' name='page' value='appointment' class='' /> <@cInput type='hidden' name='action' value='doValidateForm' class='' /> <@cInput type='hidden' name='id_form' value='${form.idForm}' class='' /> <@cInput type='hidden' name='date_of_display' value='${date_of_display}' class='' /> <@cInput type='hidden' name='token' value='${token}' class='' /> <@cInput type='hidden' name='session' value='session' class='' /> <#if infos?? && infos?size gt 0><#assign infoMsg><#list infos as info>${info.message}<@cAlert type='info' dismissible=true id='messages_infos_div' title=infoMsg /> <#if errors?? && errors?size gt 0><#assign errMsg><#list errors as error>${error.message}<@cAlert type='danger' dismissible=true id='messages_errors_div' title=errMsg /> <#if form_errors??><#assign hasDisplayableError = false><#list form_errors as form_error><#if form_error.isDisplayableError><#assign hasDisplayableError = true><#break><#if hasDisplayableError><#list form_errors as form_error><#if form_error.isDisplayableError && form_error.errorMessage==listAllErrors[8]><@cAlert type='danger' title=form_error.errorMessage ! /> <@cRow> <#assign formGroupError = ''> <#if form_errors??><#assign hasDisplayableError = false><#list form_errors as form_error><#if form_error.isDisplayableError><#assign hasDisplayableError = true><#break><#if hasDisplayableError><#list form_errors as form_error><#if form_error.isDisplayableError && form_error.errorMessage==listAllErrors[0]><#assign formGroupError = form_error.errorMessage /> <@cCol cols='12 col-sm-6'> <#assign lastnameValue><#if appointment??>${(appointment.lastName!)?html} <#assign lastnameReadonly = user?? && (user.lastName?has_content || preferred_user_name?has_content)> <@cField label='${formMessages.fieldLastNameTitle!}' required=true> <@cInput value=lastnameValue maxlength=255 id='lastname' name='lastname' readonly=lastnameReadonly errorMsg=formGroupError helpMsg=(formGroupError != '')?then('', formMessages.fieldLastNameHelp!) /> <#assign formGroupError = ''> <#if form_errors??> <#assign hasDisplayableError = false> <#list form_errors as form_error> <#if form_error.isDisplayableError> <#assign hasDisplayableError = true> <#break> <#if hasDisplayableError> <#list form_errors as form_error> <#if form_error.isDisplayableError && form_error.errorMessage==listAllErrors[1]> <#assign formGroupError = form_error.errorMessage /> <@cCol cols='12 col-sm-6'> <#assign firstnameValue><#if appointment??>${(appointment.firstName!)?html} <#assign firstnameReadonly = user?? && user.firstName?has_content> <@cField label='${formMessages.fieldFirstNameTitle!}' required=true> <@cInput value=firstnameValue maxlength=255 id='firstname' name='firstname' readonly=firstnameReadonly errorMsg=formGroupError helpMsg=(formGroupError != '')?then('', formMessages.fieldFirstNameHelp!) /> <@cRow> <#assign formGroupError = ''> <#if form_errors??> <#assign hasDisplayableError = false> <#list form_errors as form_error> <#if form_error.isDisplayableError> <#assign hasDisplayableError = true> <#break> <#if hasDisplayableError> <#list form_errors as form_error> <#if form_error.isDisplayableError && (form_error.errorMessage==listAllErrors[2] || form_error.errorMessage==listAllErrors[3])> <#assign formGroupError = form_error.errorMessage /> <@cCol cols='12 col-sm-6'> <#assign emailValue><#if appointment??>${(appointment.email!)?html} <#assign emailReadonly = user?? && user.email?has_content> <@cField label='${formMessages.fieldEmailTitle!}' required=form.enableMandatoryEmail> <@cInput type='email' value=emailValue maxlength=255 id='email' name='email' readonly=emailReadonly errorMsg=formGroupError helpMsg=(formGroupError != '')?then('', formMessages.fieldEmailHelp!) /> <#assign formGroupError = ''> <#if form_errors??> <#assign hasDisplayableError = false> <#list form_errors as form_error> <#if form_error.isDisplayableError> <#assign hasDisplayableError = true> <#break> <#if hasDisplayableError> <#list form_errors as form_error> <#if form_error.isDisplayableError && (form_error.errorMessage == listAllErrors[4] || form_error.errorMessage == listAllErrors[5])> <#assign formGroupError = form_error.errorMessage /> <@cCol cols='12 col-sm-6'> <#if user?? && user.email?has_content> <#assign emailConfirmValue><#if appointment??>${(appointment.email!)?html} <@cInput type='hidden' value=emailConfirmValue maxlength=255 id='emailConfirm' name='emailConfirm' class='' readonly=true /> <#else> <@cField label='${formMessages.fieldConfirmationEmail!}' required=form.enableMandatoryEmail> <#assign emailConfirmInputValue><#if appointment??>${(appointment.emailConfirm!)?html} <@cInput type='email' value=emailConfirmInputValue maxlength=255 id='emailConfirm' name='emailConfirm' errorMsg=formGroupError helpMsg=(formGroupError != '')?then('', formMessages.fieldConfirmationEmailHelp!) /> <#if form.maxPeoplePerAppointment gt 1> <#assign formGroupError = ''> <#if form_errors??> <#assign hasDisplayableError = false> <#list form_errors as form_error> <#if form_error.isDisplayableError> <#assign hasDisplayableError = true> <#break> <#if hasDisplayableError> <#list form_errors as form_error> <#if form_error.isDisplayableError && (form_error.errorMessage==listAllErrors[6] || form_error.errorMessage == listAllErrors[7])> <#assign formGroupError = form_error.errorMessage /> <@cCol> <#assign nbBookedSeatsValue><#if appointment??>${appointment.nbBookedSeats!} <#assign nbSeatsReadonly = (nbPlacesToTake != 0)> <@cField label='#i18n{appointment.createAppointmentForm.labelMaxPeoplePerAppointment}' required=true> <@cInput type='number' readonly=nbSeatsReadonly maxlength=3 id='nbBookedSeats' value=nbBookedSeatsValue name='nbBookedSeats' min=1 max=nbplaces params='onkeypress="return validateQty(event);"' errorMsg=formGroupError helpMsg=(formGroupError != '')?then('', (nbplaces != 0)?then(nbplaces + ' place(s) maximum', '')) /> <@cCol> ${str_entry} <@cRow> <@cCol class='text-center my-3'> <@cBtn label='' class='primary btn-sm' type='submit' params='name="save"' id='save'> <@cIcon name='check' /> <@cInline>#i18n{appointment.displayAppointmentForm.labelValidate} <@cStepNext step='4' title='#i18n{appointment.appointmentApp.recap.title}' /> <@cStepNext step='5' title='#i18n{appointment.appointmentApp.confirmation}' />