#include "all_entry_commons.html" />
<#assign headerBreadcrumbs>
<@breadcrumbs class='mt-2'>
<@breadcrumbItem><@link href='jsp/admin/plugins/appointment/ManageAppointmentFormEntries.jsp?view=modifyAppointmentFormEntries&id_form=${form.idForm}' label='#i18n{appointment.manageAppointments.pageTitle}' />@breadcrumbItem>
<@breadcrumbItem>#i18n{appointment.createEntry.titleQuestion} : ${form.title}@breadcrumbItem>
@breadcrumbs>
#assign>
<@pageContainer>
<@pageColumn>
<@pageHeader title='#i18n{appointment.createEntry.titleQuestion} : ${form.title}' class='col-md-8' breadcrumb=headerBreadcrumbs />
<@tform action='jsp/admin/plugins/appointment/ManageAppointmentFormEntries.jsp' method='post' boxed=true>
<@input type='hidden' name='id_form' value='${form.idForm}' />
<@input type='hidden' name='action' value='doCreateEntry' />
<@input type='hidden' name='id_type' value='${entry.entryType.idType}' />
<#if entry.fieldDepend?exists><@input type='hidden' name='id_field' value='${entry.fieldDepend.idField}' />#if>
<@p>#i18n{appointment.createEntry.labelType} <@tag color='info'>${entry.entryType.title}@tag>@p>
<@formGroup labelFor='title' labelKey='#i18n{appointment.labelTitle}' mandatory=true helpKey='#i18n{appointment.createEntry.labelTitleComment}'>
<@input type='text' name='title' id='title' value='' maxlength=255 />
@formGroup>
<@formGroup labelFor='help_message' labelKey='#i18n{appointment.createEntry.labelHelpMessage}' helpKey='#i18n{appointment.createEntry.labelHelpMessageComment}'>
<@input type='textarea' name='help_message' id='help_message' rows=5 />
@formGroup>
<@formGroup labelFor='comment' labelKey='#i18n{appointment.comment.name}'>
<@input type='textarea' name='comment' rows=2 />
@formGroup>
<@formGroup labelFor='value' labelKey='#i18n{appointment.defaultValue.name}'>
<@input type='text' name='value' id='value' value='' maxlength=255 />
@formGroup>
<@formGroup>
<@checkBox orientation='switch' name='mandatory' id='mandatory' labelKey='#i18n{appointment.createEntry.labelMandatory}' value='1' />
@formGroup>
<@formGroup>
<@checkBox orientation='switch' name='only_display_in_back' id='only_display_in_back' labelKey='#i18n{appointment.createEntry.labelOnlyDisplayInBack}' value='1' />
@formGroup>
<@formGroup labelFor='errorMessage' labelKey='#i18n{appointment.createEntry.labelMandatoryErrorMessage}' helpKey='#i18n{appointment.createEntry.labelMandatoryErrorMessageHelp}'>
<@input type='textarea' name='errorMessage' rows=2 />
@formGroup>
<@formGroup labelFor='width' labelKey='#i18n{appointment.createEntry.labelWidth}' mandatory=true>
<@input type='text' name='width' id='width' value='50' />
@formGroup>
<@formGroup labelFor='max_size_enter' labelKey='#i18n{appointment.createEntry.labelMaxSizeEnter}'>
<@input type='text' name='max_size_enter' id='max_size_enter' value='' />
@formGroup>
<@formGroup>
<@checkBox orientation='switch' name='confirm_field' id='confirm_field' labelKey='#i18n{appointment.createEntry.labelConfirmField}' value='1' params='onchange="javascript:changeVisilityConfirmFieldTitle();"'/>
@formGroup>
<@formGroup labelFor='confirm_field_title' labelKey='#i18n{appointment.createEntry.labelConfirmFieldTitle}' id='confirm_field_title_p'>
<@input type='text' name='confirm_field_title' id='confirm_field_title' value='' maxlength=255 />
@formGroup>
<@formGroup>
<@checkBox orientation='switch' name='anonymizable' id='anonymizable' labelKey='#i18n{appointment.createAppointmentForm.labelAnonymizable.genattField}' value='1' params='onchange="javascript:changeVisilityAnonymizePattern();"' />
@formGroup>
<@formGroup labelFor='anonymize_pattern' id="anonymize_pattern_group" labelKey='#i18n{appointment.createAppointmentForm.labelAnonymizePattern}' helpKey='${anonymization_help_message}' >
<@input type='text' name='anonymize_pattern' id='anonymize_pattern' maxlength=255 />
@formGroup>
<@formGroup labelFor='css_class' labelKey='#i18n{appointment.createEntry.labelCSSClass}' helpKey='#i18n{appointment.createEntry.labelCSSClassComment}'>
<@input type='text' name='css_class' value='' maxlength=255 />
@formGroup>
<@formGroup>
<@button type='submit' name='save' buttonIcon='check' title='#i18n{appointment.labelSave}' class='form-validation' />
<@button type='submit' name='apply' buttonIcon='check' title='#i18n{appointment.createEntry.buttonApplyAndManageVerification}' />
<@button type='submit' name='cancel' value='cancel' buttonIcon='arrow-left' color='secondary' title='#i18n{appointment.labelCancel}' class='form-validation' cancel=true />
@formGroup>
@tform>
@pageColumn>
@pageContainer>
<#include "/admin/util/editor/editor.html" />
<@initEditor />
<@anonymPattern />