#include "/admin/plugins/directory/commons.html" />
<@row>
<@columns id='main'>
<@box color='primary'>
<@boxHeader title='#i18n{directory.modify_entry.title_field} : "${entry.directory.title}"' boxTools=true>
<@button type='button' buttonIcon='cogs' title='#i18n{directory.create_directory.label_advancedsettings}' id='advanced' />
@boxHeader>
<@boxBody>
<@tform action='jsp/admin/plugins/directory/DoModifyEntry.jsp#list'>
<@formGroup labelFor='title' labelKey='#i18n{directory.create_entry.label_title}' helpKey='#i18n{directory.create_entry.label_title_comment}' mandatory=true>
<@input type='text' name='title' id='title' value='${entry.title}' maxlength=255 />
@formGroup>
<@formGroup>
<@checkBox labelFor='mandatory' labelKey='#i18n{directory.create_entry.label_mandatory}' name='mandatory' id='mandatory' value='1' checked=entry.mandatory />
@formGroup>
<@formGroup labelFor='file_max_size' labelKey='#i18n{directory.create_entry.label_file_max_size}' mandatory=true>
<@input type='text' name='file_max_size' id='file_max_size' value='${getFileMaxSize(entry)}' />
@formGroup>
<@formGroup labelFor='max_files' labelKey='#i18n{directory.create_entry.label_max_files}' mandatory=true>
<@input type='text' name='max_files' maxlength=2 value='${getMaxFiles(entry)}' />
@formGroup>
<@formGroup labelFor='width' labelKey='#i18n{directory.create_entry.label_width}' mandatory=true>
<#list entry.fields as field>
<#if !field.title??>
<@input type='text' name='width' id='width' value='${field.width}' />
<#break>
#if>
<#if field?index = 0><#assign id_field=field.idField>#if>
#list>
@formGroup>
<@formGroup labelFor='display_width' labelKey='#i18n{directory.create_entry.label_width_display}'>
<#assign displayWidthValue><#if entry.displayWidth!=-1>${entry.displayWidth}#if>#assign>
<@input type='text' name='display_width' id='display_width' value=displayWidthValue />
@formGroup>
<@formGroup labelFor='display_height' labelKey='#i18n{directory.create_entry.label_height_display}'>
<#assign displayHeightValue><#if entry.displayHeight!=-1>${entry.displayHeight}#if>#assign>
<@input type='text' name='display_height' id='display_height' value=displayHeightValue />
@formGroup>
<@formGroup labelKey='#i18n{directory.create_entry.label_image_full_size}'>
<@checkBox labelFor='image_shown_in_result_list' labelKey='#i18n{directory.create_entry.label_shown_in_result_list}' name='image_shown_in_result_list' id='image_shown_in_result_list' value='1' checked=image_field??&&image_field.isShownInResultList() />
<@checkBox labelFor='image_shown_in_result_record' labelKey='#i18n{directory.create_entry.label_shown_in_result_record}' name='image_shown_in_result_record' id='image_shown_in_result_record' value='1' checked=image_field??&&image_field.isShownInResultRecord() />
@formGroup>
<@formGroup labelKey='#i18n{directory.create_entry.label_thumbnail}'>
<@checkBox labelFor='create_thumbnail' labelKey='#i18n{directory.create_entry.label_thumbnail_comment}' name='create_thumbnail' id='create_thumbnail' value='1' checked=has_thumbnail?? />
<@checkBox labelFor='create_big_thumbnail' labelKey='#i18n{directory.create_entry.label_big_thumbnail_comment}' name='create_big_thumbnail' id='create_big_thumbnail' value='1' checked=has_big_thumbnail?? />
@formGroup>
<@formGroup id='thumbnail'>
<@card header=true headerIcon=true headerTitle='#i18n{directory.create_entry.label_thumbnail}' headerTitleIcon='picture-o'>
<@formGroup>
<@checkBox labelFor='thbnail_shown_in_result_list' labelKey='#i18n{directory.create_entry.label_shown_in_result_list}' name='thbnail_shown_in_result_list' id='thbnail_shown_in_result_list' value='1' checked=thumbnail_field??&&thumbnail_field.isShownInResultList() />
<@checkBox labelFor='thbnail_shown_in_result_record' labelKey='#i18n{directory.create_entry.label_shown_in_result_record}' name='thbnail_shown_in_result_record' id='thbnail_shown_in_result_record' value='1' checked=thumbnail_field??&&thumbnail_field.isShownInResultRecord() />
@formGroup>
<@formGroup labelFor='thumbnail_width' labelKey='#i18n{directory.create_entry.label_thumbnail_width}'>
<#assign thumbnailWidthValue><#if thumbnail_field??&thumbnail_field.width??>${thumbnail_field.width}#if>#assign>
<@input type='text' name='thumbnail_width' id='thumbnail_width' value=thumbnailWidthValue />
@formGroup>
<@formGroup labelFor='thumbnail_height' labelKey='#i18n{directory.create_entry.label_thumbnail_height}'>
<#assign thumbnailHeightValue><#if thumbnail_field??&thumbnail_field.height??>${thumbnail_field.height}#if>#assign>
<@input type='text' name='thumbnail_height' id='thumbnail_height' value=thumbnailHeightValue />
@formGroup>
@card>
@formGroup>
<@formGroup id='thumbnail_big'>
<@card header=true headerIcon=true headerTitle='#i18n{directory.create_entry.label_big_thumbnail}' headerTitleIcon='picture-o'>
<@formGroup>
<@checkBox labelFor='big_thbnail_shown_in_result_list' labelKey='#i18n{directory.create_entry.label_shown_in_result_list}' name='big_thbnail_shown_in_result_list' id='big_thbnail_shown_in_result_list' value='1' checked=big_thumbnail_field??&&big_thumbnail_field.isShownInResultList() />
<@checkBox labelFor='big_thbnail_shown_in_result_record' labelKey='#i18n{directory.create_entry.label_shown_in_result_record}' name='big_thbnail_shown_in_result_record' id='big_thbnail_shown_in_result_record' value='1' checked=big_thumbnail_field??&&big_thumbnail_field.isShownInResultRecord() />
@formGroup>
<@formGroup labelFor='thumbnail_big_width' labelKey='#i18n{directory.create_entry.label_thumbnail_width}'>
<#assign thumbnailBigWidthValue><#if big_thumbnail_field?? & big_thumbnail_field.width??>${big_thumbnail_field.width}#if>#assign>
<@input type='text' name='thumbnail_big_width' id='thumbnail_big_width' value=thumbnailBigWidthValue />
@formGroup>
<@formGroup labelFor='thumbnail_big_height' labelKey='#i18n{directory.create_entry.label_thumbnail_height}'>
<#assign thumbnailBigHeightValue><#if big_thumbnail_field?? & big_thumbnail_field.height??>${big_thumbnail_field.height}#if>#assign>
<@input type='text' name='thumbnail_big_height' id='thumbnail_big_height' value=thumbnailBigHeightValue />
@formGroup>
@card>
@formGroup>
<@formGroup labelFor='help_message' labelKey='#i18n{directory.create_entry.label_help_message}' helpKey='#i18n{directory.create_entry.label_help_message_comment}'>
<@input type='textarea' name='help_message' id='help_message' rows=2>${entry.helpMessage}@input>
@formGroup>
<@formGroup helpKey='#i18n{directory.create_entry.label_shown_in_result_list_comment}'>
<@checkBox labelFor='shown_in_result_list' labelKey='#i18n{directory.create_entry.label_shown_in_result_list}' name='shown_in_result_list' id='shown_in_result_list' value='1' checked=entry.shownInResultList />
@formGroup>
<@formGroup helpKey='#i18n{directory.create_entry.label_shown_in_result_record_comment}'>
<@checkBox labelFor='shown_in_result_record' labelKey='#i18n{directory.create_entry.label_shown_in_result_record}' name='shown_in_result_record' id='shown_in_result_record' value='1' checked=entry.shownInResultRecord />
@formGroup>
<@formGroup helpKey='#i18n{directory.create_entry.label_shown_in_history_comment}'>
<@checkBox labelFor='shown_in_history' labelKey='#i18n{directory.create_entry.label_shown_in_history}' name='shown_in_history' id='shown_in_history' value='1' checked=entry.shownInHistory />
@formGroup>
<@formGroup helpKey='#i18n{directory.create_entry.label_shown_in_export_comment}'>
<@checkBox labelFor='shown_in_export' labelKey='#i18n{directory.create_entry.label_shown_in_export}' name='shown_in_export' id='shown_in_export' value='1' checked=entry.shownInExport />
@formGroup>
<@formGroup helpKey='#i18n{directory.create_entry.label_shown_in_completeness_comment}'>
<@checkBox labelFor='shown_in_completeness' labelKey='#i18n{directory.create_entry.label_shown_in_completeness}' name='shown_in_completeness' id='shown_in_completeness' value='1' checked=entry.shownInCompleteness />
@formGroup>
<@formGroup labelFor='comment' labelKey='#i18n{directory.create_entry.label_comment}'>
<@input type='textarea' name='comment' rows=2>${entry.comment}@input>
@formGroup>
<@formGroup>
<@button type='submit' name='save' buttonIcon='save' title='#i18n{directory.create_entry.button_save}' showTitleXs=false size='' />
<@button type='submit' name='apply' buttonIcon='check' title='#i18n{directory.modify_entry.button_apply}' showTitleXs=false size='' />
<@aButton href='jsp/admin/plugins/directory/ModifyDirectory.jsp?id_directory=${entry.directory.idDirectory}#list' buttonIcon='remove' title='#i18n{directory.create_entry.button_cancel}' showTitleXs=false size='' color='btn-secondary' />
@formGroup>
@tform>
@boxBody>
@box>
@columns>
<#if regular_expression_list??>
<@columns>
<@box color='primary'>
<@boxHeader title='#i18n{directory.create_entry.manage_regular_expression.title}' />
<@boxBody>
<@tform action='jsp/admin/plugins/directory/DoInsertVerification.jsp#list'>
<@formGroup labelFor='id_expression' labelKey='#i18n{directory.create_entry.manage_regular_expression.label_insert}' helpKey='#i18n{directory.create_entry.manage_regular_expression.label_insert_comment}'>
<@inputGroup>
<@select name='id_expression' default_value='-1' items=regular_expression_list size='sm' />
<@inputGroupItem>
<@button type='submit' buttonIcon='plus' title='#i18n{directory.create_entry.manage_regular_expression.button_insert}' showTitle=false />
@inputGroupItem>
@inputGroup>
@formGroup>
@tform>
<@table>
#i18n{directory.create_entry.manage_regular_expression.row_title} |
#i18n{directory.create_entry.manage_regular_expression.row_information_message} |
#i18n{directory.create_entry.manage_regular_expression.row_valid_exemple} |
#i18n{directory.create_entry.manage_field.row_actions} |
<#list list as expression>
${expression.title} |
${expression.informationMessage} |
${expression.validExemple} |
<@aButton href='jsp/admin/plugins/directory/DoRemoveVerification.jsp?id_expression=${expression.idExpression}&id_field=${id_field}#list' buttonIcon='trash' title='#i18n{directory.create_entry.manage_field.title_delete}' showTitle=false color='btn-danger' />
|
#list>
@table>
<@paginationAdmin paginator=paginator combo=1 />
@boxBody>
@box>
@columns>
#if>
@row>