#include "/admin/plugins/directory/commons.html" />
<@row>
<@columns id='main'>
<@box color='primary'>
<@boxHeader title='#i18n{directory.create_entry.title_field} : "${entry.directory.title}"' boxTools=true>
<@button type='button' buttonIcon='cogs' title='#i18n{directory.create_directory.label_advancedsettings}' id='advanced' />
@boxHeader>
<@boxBody>
<@directoryModifyForm entry=entry is_searchable=false is_exportable=false>
<@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='image_type' labelKey='#i18n{directory.create_entry.labelImageType}' >
@formGroup>
<@formGroup labelFor='width' labelKey='#i18n{directory.create_entry.label_width_display}'>
<#if entry.displayWidth!=-1>
<@input type='text' name='width' id='width' value=entry.displayWidth/>
<#else>
<@input type='text' name='width' id='width'/>
#if>
@formGroup>
<@formGroup labelFor='height' labelKey='#i18n{directory.create_entry.label_height_display}'>
<#if entry.displayHeight!=-1>
<@input type='text' name='height' id='height' value=entry.displayHeight/>
<#else>
<@input type='text' name='height' id='height'/>
#if>
@formGroup>
<@formGroup labelFor='image_shown' labelKey='#i18n{directory.create_entry.label_image_full_size}'>
<#--
-- at the moment only EntryTypeImage is considered as image, so image_field is not filled in model for EntryTypeCamera
-->
<#list entry.fields as field>
<#if field.value = "image_full_size" >
<#assign image_field=field />
<#break>
#if>
#list>
<@checkBox orientation='horizontal' 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 orientation='horizontal' 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>
@directoryModifyForm>
@boxBody>
@box>
@columns>
@row>