#include "/admin/plugins/directory/commons.html" />
<@row>
<@tform action='jsp/admin/plugins/directory/DoModifyEntry.jsp#list'>
<@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' />
<@button style='btn-box-tool' params='data-widget="collapse"' buttonIcon='minus' />
@boxHeader>
<@boxBody>
<@formGroup labelFor='entry_type' labelKey='#i18n{directory.create_entry.label_type}'>
<@tag color='info' title='#i18n{directory.create_entry.label_type}'>#i18n{${entry.entryType.titleI18nKey}}@tag>
@formGroup>
<@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='width' labelKey='#i18n{directory.create_entry.label_presentation}'>
<@select name='field_in_line' id='field_in_line'>
@select>
@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 labelFor='help_message_search' labelKey='#i18n{directory.create_entry.label_help_message_search}' helpKey='#i18n{directory.create_entry.label_help_message_search_comment}'>
<@input type='textarea' name='help_message_search' id='help_message_search' rows=2>${entry.helpMessageSearch!}@input>
@formGroup>
<#if is_authentification_enabled&&(!is_association_entry_role || entry.roleAssociated)>
<@formGroup>
<@checkBox labelFor='role_associated' labelKey='#i18n{directory.create_entry.label_role_associated}' name='role_associated' id='role_associated' value='1' checked=entry.roleAssociated />
@formGroup>
#if>
<#if !is_association_entry_workgroup|| entry.workgroupAssociated>
<@formGroup>
<@checkBox labelFor='workgroup_associated' labelKey='#i18n{directory.create_entry.label_workgroup_associated}' name='workgroup_associated' id='workgroup_associated' value='1' checked=entry.workgroupAssociated />
@formGroup>
#if>
<@formGroup helpKey='#i18n{directory.create_entry.label_indexed_comment}'>
<@checkBox labelFor='indexed' labelKey='#i18n{directory.create_entry.label_indexed}' name='indexed' id='indexed' value='1' checked=entry.indexed />
@formGroup>
<@formGroup helpKey='#i18n{directory.create_entry.label_shown_in_advanced_search_comment}'>
<@checkBox labelFor='shown_in_advanced_search' labelKey='#i18n{directory.create_entry.label_shown_in_advanced_search}' name='shown_in_advanced_search' id='shown_in_advanced_search' value='1' checked=entry.shownInAdvancedSearch />
@formGroup>
<@formGroup>
<@checkBox labelFor='indexed_as_title' labelKey='#i18n{directory.create_entry.label_indexed_as_title}' name='indexed_as_title' id='indexed_as_title' value='1' checked=entry.indexedAsTitle />
@formGroup>
<@formGroup>
<@checkBox labelFor='indexed_as_summary' labelKey='#i18n{directory.create_entry.label_indexed_as_summary}' name='indexed_as_summary' id='indexed_as_summary' value='1' checked=entry.indexedAsSummary />
@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}' name='cancel' buttonIcon='remove' title='#i18n{directory.create_entry.button_cancel}' showTitleXs=false size='' color='btn-secondary' />
@formGroup>
@boxBody>
@box>
@columns>
@tform>
<@columns>
<@box color='primary'>
<@boxHeader title='#i18n{directory.create_entry.manage_field.title}' boxTools=true>
<@aButton id='btn-create' href='jsp/admin/plugins/directory/CreateField.jsp' buttonIcon='plus' title='#i18n{directory.create_entry.manage_field.button_insert}' showTitleXs=false />
<@aButton href='jsp/admin/plugins/directory/ImportField.jsp?id_directory=${idDirectory}&id_entry=${entry.idEntry}' buttonIcon='upload' title='#i18n{directory.import_field.title}' showTitleXs=false />
@boxHeader>
<@boxBody>
<@table>
#i18n{directory.create_entry.manage_field.row_title} |
#i18n{directory.create_entry.manage_field.row_value} |
#i18n{directory.create_entry.manage_field.row_default_value} |
#i18n{directory.create_entry.manage_field.row_key} |
#i18n{directory.create_entry.manage_field.row_actions} |
<#assign cpt=0>
<#list list as field>
<#assign cpt=cpt+1>
${field.title} |
${field.value} |
<#if field.defaultValue>
#if>
|
${field.idField} |
<@aButton href='jsp/admin/plugins/directory/ModifyField.jsp?id_field=${field.idField}' buttonIcon='pencil' title='#i18n{portal.util.labelModify}' showTitle=false />
<#if cpt!=1>
<@aButton href='jsp/admin/plugins/directory/DoMoveUpField.jsp?id_field=${field.idField}#list' buttonIcon='chevron-up' title='#i18n{directory.create_entry.manage_field.title_move_up}' showTitle=false />
#if>
<#if field_has_next>
<@aButton href='jsp/admin/plugins/directory/DoMoveDownField.jsp?id_field=${field.idField}#list' buttonIcon='chevron-down' title='#i18n{directory.create_entry.manage_field.title_move_down}' showTitle=false />
#if>
<@aButton href='jsp/admin/plugins/directory/ConfirmRemoveField.jsp?id_field=${field.idField}#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>
@row>