#macro dashboardTable items=[] list_available_orders_column=[] order=true unsetColumn=true> <#if items?exists && items?size > 0> <@table> <@tr> <#-- header --> <@th>#i18n{portal.dashboard.table.title.name}@th> <#-- name --> <@th>#i18n{portal.dashboard.table.title.column}@th> <#-- column --> <#if order><@th>#i18n{portal.dashboard.table.title.order}@th>#if> <#-- order --> <#if unsetColumn><@th>#i18n{profiles.manage_dashboards.table.title.actions}@th>#if> <#-- unsetColumn --> @tr> <#list items as dashboard> <@tr> <@td>${dashboard.name}@td> <#-- name --> <@td> <#-- column --> <@tform type='inline' action='jsp/admin/plugins/profiles/DoMoveDashboard.jsp' method='post'> <@input type='hidden' name='dashboard_name' value='${dashboard.name}' /> <#if !dashboard.order?exists || dashboard.order == 0 > <#assign dashboard_order=1/> <#else> <#assign dashboard_order=dashboard.order/> #if> <@input type='hidden' name='dashboard_order' value='${dashboard_order}' /> <@input type='hidden' name='view_key' value='${view.key}' /> <@formGroup formStyle='inline' labelFor='dashboard_column' labelKey='' hideLabel=['all']> <@inputGroup> <@select name='dashboard_column' default_value='${dashboard.zone!}' items=list_available_columns size='sm' /> <@inputGroupItem> <@button type='submit' title='#i18n{portal.dashboard.table.action.setColumn}' hideTitle=['all'] buttonIcon='check' size='sm' /> @inputGroupItem> @inputGroup> @formGroup> @tform> @td> <#-- /column --> <#if order> <@td> <#-- order --> <@tform type='inline' action='jsp/admin/plugins/profiles/DoMoveDashboard.jsp' method='post'> <@input type='hidden' name='dashboard_name' value='${dashboard.name}' /> <#if !dashboard.zone?exists || dashboard.zone == 0> <#assign dashboard_column=1 /> <#else> <#assign dashboard_column=dashboard.zone /> #if> <@input type='hidden' name='dashboard_column' value='${dashboard_column}' /> <@input type='hidden' name='view_key' value='${view.key}' /> <@formGroup formStyle='inline' labelFor='dashboard_order' labelKey='' hideLabel=['all']> <@inputGroup> <@select name='dashboard_order' default_value='${dashboard.order!}' items=list_available_orders_column size='sm' /> <@inputGroupItem> <@button type='submit' title='#i18n{portal.dashboard.table.action.move}' hideTitle=['all'] buttonIcon='arrows-v' size='sm' /> @inputGroupItem> @inputGroup> @formGroup> @tform> @td> <#-- /order --> #if> <#if unsetColumn> <@td> <#-- unsetColumn --> <@tform action='jsp/admin/plugins/profiles/DoUnsetColumn.jsp' method='post'> <@input type='hidden' name='dashboard_name' value='${dashboard.name}' /> <@input type='hidden' name='view_key' value='${view.key}' /> <@button type='submit' title='#i18n{profiles.manage_dashboards.action.unsetColumn}' hideTitle=['all'] buttonIcon='trash' color='danger' size='sm' /> @tform> @td> <#-- /unsetColumn --> #if> @tr> #list> @table> <#else>
#i18n{portal.dashboard.message.emptyGroup}
#if> #macro> <@row> <@columns xl=4> <@box> <@boxHeader title='#i18n{profiles.manage_views.columnKey} : ${view.key}'> <#if view.actions?exists> <#list view.actions as action> <#if action.permission!='DELETE_VIEW'><#assign color='primary' /><#else><#assign color='danger' />#if> <@aButton href='${action.url}?view_key=${view.key}' title='${action.description}' hideTitle=['all'] buttonIcon='${action.iconUrl}' color=color size='sm' /> #list> #if> <@item_navigation item_navigator=item_navigator hideButtonTitle=['all'] /> @boxHeader> <@boxBody> <#-- not set list -->