{* Smarty block element for creating an admin access overview page. The following variables have to be given by the including template to create the list elements: - $title: Title of this overview - $action: Data of an action that should be displayed above the overview Has to contain the following keys: - text: Text that should be displayed inside the button - url: URL for this action - icon: Font awesome icon for the button If $action is empty no action is shown. - $list_elements: Array of elements that should be displayed in the list. Has to contain the following keys: - name: Name of the entry If $list_elements is empty a notification is shown instead. - $elements_actions: Array of actions that should be displayed for each list element. Has to contain the following keys: - url: URL for this action - icon: Icon for this action Can contain the following keys: - class: CSS class for this action If $list_actions is empty no actions are shown. Example: {include file="get_usermod:admin_access/partial/overview_list.html" title=$title action=$content.listAction list_elements=$list_elements elements_actions=$elements_actions} *} {block name="admin_admin_access_partial_overview_list"} {block name="admin_admin_access_partial_overview_list_heading"} {if $title || $action}
{block name="admin_admin_access_partial_overview_list_heading_title"}
{if $title}

{$title}

{/if}
{/block} {block name="admin_admin_access_partial_overview_list_heading_action_if"} {if $action} {block name="admin_admin_access_partial_overview_list_heading_action"}
{$action.text}
{/block} {/if} {/block}
{/if} {/block} {if $list_elements} {block name="admin_admin_access_partial_overview_list_container"}
{block name="admin_admin_access_partial_overview_list_container_list"} {/block}
{/block} {else} {block name="admin_admin_access_partial_overview_list_container_empty_list"}
{/block} {/if} {/block}