<@tabPanel id='editors'> <@pageHeader title="#i18n{portal.admindashboard.editorChoice.title}" titleClass="pb-3"/> <#-- The last opened tab is kept by the script below rather than by keepState: admin-tabs.js would replace the #editors hash, which opens this panel --> <@tabs id='editorsTabs' keepState=false> <@tabList> <@tabLink active=true href='#editorsBackOffice' title='#i18n{portal.admindashboard.editorChoice.tabBackOffice}' tabLabel='#i18n{portal.admindashboard.editorChoice.tabBackOffice}' /> <@tabLink href='#editorsFrontOffice' title='#i18n{portal.admindashboard.editorChoice.tabFrontOffice}' tabLabel='#i18n{portal.admindashboard.editorChoice.tabFrontOffice}' /> <@tabContent> <@tabPanel id='editorsBackOffice' active=true> <@tform action='jsp/admin/admindashboard/DoUpdateBackOfficeEditor.jsp'> <@input type='hidden' name='token' value='${token}' /> <@formGroup labelKey='#i18n{portal.admindashboard.editorChoice.labelEditorBackOffice}' rows=2> <#if !current_editor_back_office??><#assign current_editor_back_office = ""> <@inputGroup> <@select name='editor_back_office' items=listEditorsBackOffice default_value=current_editor_back_office /> <@button type='submit' buttonIcon='check' title='#i18n{portal.util.labelModify}' color='primary' /> <#if editor_profiles_by_editor??> <@pageHeader title='#i18n{portal.admindashboard.editorProfile.title}' description='#i18n{portal.admindashboard.editorProfile.description}' titleClass='pt-4 pb-3'> <@aButton href='jsp/admin/admindashboard/ManageEditorProfiles.jsp?view=createEditorProfile' buttonIcon='plus' title='#i18n{portal.admindashboard.editorProfile.buttonCreate}' color='primary' /> <#list editor_profiles_by_editor as editorName, profiles> <@h level=3 class='mt-3'>${editor_labels[editorName]!editorName}<#if editorName == current_editor_back_office!''> #i18n{portal.admindashboard.editorProfile.labelCurrentEditor} <#assign movableCount = profiles?filter( p -> !p.default )?size> <@manageFeature> <#list profiles as profile> <@manageFeatureItem> <@manageFeatureItemColumn cols='5' dir='column' align='start' flex=true> ${profile.name} <#if profile.default>#i18n{portal.admindashboard.editorProfile.labelDefault} <#if profile.description?has_content>${profile.description} <@manageFeatureItemColumn cols='5' dir='column' align='start' flex=true> <#if profile.default> #i18n{portal.admindashboard.editorProfile.labelAppliesOtherwise} <#else> #i18n{portal.admindashboard.editorProfile.labelPlugins} : ${profile.plugins?join(', ')} <#if profile.roles?has_content>#i18n{portal.admindashboard.editorProfile.labelRoles} : <#list profile.roles as role>${role_labels[role]!role}<#sep>, <#if profile.workgroups?has_content>#i18n{portal.admindashboard.editorProfile.labelWorkgroups} : <#list profile.workgroups as workgroup>${workgroup_labels[workgroup]!workgroup}<#sep>, <@manageFeatureItemColumn cols='2' align='end'> <#if !profile.default> <#if profile?index gt 0> <@tform method='post' action='jsp/admin/admindashboard/ManageEditorProfiles.jsp' class='d-inline'> <@input type='hidden' name='action' value='moveEditorProfile' /> <@input type='hidden' name='_csrftoken' value='${move_profile_token}' /> <@input type='hidden' name='profile_id' value='${profile.id}' /> <@input type='hidden' name='direction' value='up' /> <@button type='submit' buttonIcon='arrow-up' title='#i18n{portal.admindashboard.editorProfile.buttonMoveUp}' hideTitle=['all'] size='sm' color='secondary' /> <#if profile?index lt movableCount - 1> <@tform method='post' action='jsp/admin/admindashboard/ManageEditorProfiles.jsp' class='d-inline'> <@input type='hidden' name='action' value='moveEditorProfile' /> <@input type='hidden' name='_csrftoken' value='${move_profile_token}' /> <@input type='hidden' name='profile_id' value='${profile.id}' /> <@input type='hidden' name='direction' value='down' /> <@button type='submit' buttonIcon='arrow-down' title='#i18n{portal.admindashboard.editorProfile.buttonMoveDown}' hideTitle=['all'] size='sm' color='secondary' /> <@aButton href='jsp/admin/admindashboard/ManageEditorProfiles.jsp?view=modifyEditorProfile&profile_id=${profile.id}' buttonIcon='pencil' title='#i18n{portal.util.labelModify}' hideTitle=['all'] size='sm' /> <#if !profile.default> <@aButton href='jsp/admin/admindashboard/ManageEditorProfiles.jsp?view=confirmRemoveEditorProfile&profile_id=${profile.id}' buttonIcon='trash' title='#i18n{portal.util.labelDelete}' hideTitle=['all'] size='sm' color='danger' /> <@tabPanel id='editorsFrontOffice'> <@tform action='jsp/admin/admindashboard/DoUpdateFrontOfficeEditor.jsp'> <@input type='hidden' name='token' value='${token}' /> <@formGroup labelKey='#i18n{portal.admindashboard.editorChoice.labelEditorFrontOffice}' rows=2> <#if !current_editor_front_office??><#assign current_editor_front_office = ""> <@select name='editor_front_office' items=listEditorsFrontOffice default_value=current_editor_front_office /> <@formGroup rows=2> <@button type='submit' buttonIcon='check' title='#i18n{portal.util.labelModify}' color='primary' />