<#-- The layout of the homepage dashboards, arranged by drag and drop: one card a zone, laid out as on the homepage (zone 1 the strip of figures over the whole width, zones 2 and 3 half the width each, the next ones a third), and a card of the dashboards that are not displayed. Each dashboard carries a hidden field named after its zone: moving it renames the field, and the form posts the whole layout at once. Buttons on each dashboard do the same moves from the keyboard. --> <#macro layoutItem dashboard field> <#local label = dashboard.description?has_content?then( dashboard.description, dashboard.name )>
  • ${label}
    <#if dashboard.plugin??>${dashboard.plugin.name} ยท ${dashboard.name}
  • <#-- The dashboards that are not displayed: those never placed, and those left in a zone below 1 by the former screen --> <#assign unsetDashboards = not_set_dashboards![]> <#list map_dashboards?keys as zoneKey> <#if zoneKey?number lt 1><#assign unsetDashboards = unsetDashboards + map_dashboards[zoneKey]> <#-- A panel of the technical dashboard, with its own entry in its menu (added by view_dashboards.html from data-nav and title) --> <@adminDashboardPanel title='#i18n{portal.dashboard.adminFeature.dashboard_management.name}' navTitle='#i18n{portal.dashboard.menuTitle}' childId='adminHomePageManagement' icon='layout-dashboard'>

    #i18n{portal.dashboard.featureDescription} #i18n{portal.dashboard.manage.help}

    <#list zones as zone> <#assign zoneDashboards = ( map_dashboards[zone?c]![] )?sort_by( 'order' )>

    ${i18n( 'portal.dashboard.manage.zone', zone?c )}

    <#if zone gt displayed_zone_count>#i18n{portal.dashboard.manage.zone.notDisplayed}<#elseif zone == 1>#i18n{portal.dashboard.manage.zone.strip}<#elseif zone lte 3>#i18n{portal.dashboard.manage.zone.half}<#else>#i18n{portal.dashboard.manage.zone.third}

    ${zoneDashboards?size}
      <#list zoneDashboards as dashboard><@layoutItem dashboard=dashboard field='dashboard_zone_${zone}' />

    #i18n{portal.dashboard.manage.unset}

    #i18n{portal.dashboard.manage.unset.help}

    ${unsetDashboards?size}
      <#list unsetDashboards as dashboard><@layoutItem dashboard=dashboard field='dashboard_unset' />
    #i18n{portal.dashboard.manage.buttonCancel}