#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.modifyAppointmentFormEntries.pageTitle}' />@breadcrumbItem>
<@breadcrumbItem>#i18n{appointment.modifyEntry.titleQuestion} : ${form.title}@breadcrumbItem>
@breadcrumbs>
#assign>
<@pageContainer>
<@pageColumn>
<@pageHeader title='#i18n{appointment.modifyEntry.titleQuestion} : ${form.title}' class='col-md-8' breadcrumb=headerBreadcrumbs />
<@tform action='jsp/admin/plugins/appointment/ManageAppointmentFormEntries.jsp' boxed=true>
<@input type='hidden' name='id_entry' value='${entry.idEntry}' />
<@input type='hidden' name='action' value='doModifyEntry' />
<@p>#i18n{appointment.createEntry.labelType} <@tag color='info'>${entry.entryType.title}@tag>@p>
<@formGroup labelFor='title' labelKey='#i18n{appointment.labelTitle}' helpKey='#i18n{appointment.createEntry.labelTitleComment}' mandatory=true>
<@input type='text' name='title' id='title' value='${entry.title}' 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=10>${entry.helpMessage}@input>
@formGroup>
<@formGroup labelFor='comment' labelKey='#i18n{appointment.comment.name}'>
<@input type='textarea' name='comment' id='comment' rows=2>${entry.comment}@input>
@formGroup>
<@formGroup labelFor='value' labelKey='#i18n{appointment.defaultValue.name}'>
<#assign field=getFieldByCode( entry, "text_config")>
<@input type='textarea' name='value' id='value' rows=10>${field.value}@input>
@formGroup>
<@formGroup>
<@checkBox orientation='switch' labelKey='#i18n{appointment.createEntry.labelMandatory}' name='mandatory' id='mandatory' value='1' checked=entry.mandatory />
@formGroup>
<@formGroup>
<@checkBox orientation='switch' labelKey='#i18n{appointment.createEntry.labelOnlyDisplayInBack}' name='only_display_in_back' id='only_display_in_back' value='1' checked=entry.onlyDisplayInBack />
@formGroup>
<@formGroup labelFor='width' labelKey='#i18n{appointment.createEntry.labelWidth}' mandatory=true>
<#assign field=getFieldByCode( entry, "width")>
<@input type='text' name='width' id='width' value='${field.value}' />
@formGroup>
<@formGroup labelFor='height' labelKey='#i18n{appointment.createEntry.labelHeight}' mandatory=true>
<#assign field=getFieldByCode( entry, "height")>
<@input type='text' name='height' id='height' inputSize=5 value='${field.value}' />
@formGroup>
<@formGroup labelFor='max_size_enter' labelKey='#i18n{appointment.createEntry.labelMaxSizeEnter}'>
<#assign field_max_size=getFieldValueByCode( entry, "max_size")>
<@input type='text' name='max_size_enter' id='max_size_enter' value=field_max_size />
@formGroup>
<@formGroup>
<#assign anonymizable=getFieldByCode( entry, "anonymizable")>
<#if anonymizable.value?boolean>
<#assign checkedValue = true />
<#assign anonPattern = anonymizable.title />
<#else>
<#assign checkedValue = false />
<#assign anonPattern = "" />
#if>
<@checkBox orientation='switch' labelKey='#i18n{appointment.createAppointmentForm.labelAnonymizable.genattField}' name='anonymizable' id='anonymizable' value='1' params='onchange="javascript:changeVisilityAnonymizePattern();"' checked=checkedValue />
@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' value='${anonPattern!}' maxlength=255 />
@formGroup>
<@formGroup labelFor='css_class' labelKey='#i18n{appointment.createEntry.labelCSSClass}' helpKey='#i18n{appointment.createEntry.labelCSSClassComment}'>
<@input type='text' name='css_class' id='css_class' value='${entry.CSSClass!}' maxlength=255 />
@formGroup>
<@formGroup>
<#assign field_richtext=getFieldValueByCode( entry, "richtext")>
<#if field_richtext == 'true'><#assign checked = true /><#else><#assign checked = false />#if>
<@checkBox orientation='switch' labelKey='#i18n{appointment.createEntry.labelUseRichText}' name='useRichText' id='useRichText' value='true' checked=checked />
@formGroup>
<@formGroup>
<@button type='submit' buttonIcon='check' title='#i18n{appointment.labelSave}' hideTitle=['xs'] class='form-validation' />
<@button type='submit' buttonIcon='arrow-left' color='light' title='#i18n{appointment.labelCancel}' name='cancel' id='cancel' value='cancel' cancel=true hideTitle=['xs'] class='form-validation' />
@formGroup>
@tform>
@pageColumn>
@pageContainer>
<@anonymPattern />