{strip} {if $editMenu.menu_id}
{biticon ipackage="icons" iname="view-list-text" iexplain="create new menu"}
{/if}

{tr}Menu Administration{/tr}

{formfeedback hash=$formfeedback} {form legend="Create / Edit Menus"}
{if $editMenu} {formfeedback warning="{tr}Renaming an assigned menu will cause an error because the cache file will be renamed as well. You will have to make appropriate modifications in the layout page as well.{/tr}"} {/if} {formlabel label="Title" for="title"} {forminput} {formhelp note="Enter a name for your menu."} {/forminput}
{formlabel label="Description" for="description"} {forminput} {formhelp note="A description of this menu. This description is visible to users that can add items to this menu."} {/forminput}
{formlabel label="Editable menu" for="editable"} {forminput} {html_checkboxes name="editable" values="1" checked=$editMenu.editable labels=false id="editable"} {formhelp note="Checking this will allow users with the correct permission (p_nexus_insert_item) to add menu items when they are editing content such as a wiki page or a fisheye gallery."} {/forminput}
{formlabel label="Pick menu type"} {forminput} {foreach from=$gNexusSystem->mPlugins item=plugin name=foo} {if $plugin.is_active eq 'y'}
{formhelp note=$plugin.description}
{foreach from=$plugin.menu_types item=menu_type}
{$menu_type.label}
{$menu_type.note}
{/foreach}
{if !$smarty.foreach.foo.last}
{/if} {/if} {/foreach} {/forminput}
{formhelp note="If you want to insert a menu in the top bar, please create the menu and then assign it to the top bar in the Manage Layouts screen. We recommend the horizontal suckerfish menu for top bar menus." link="kernel/admin/index.php?page=layout/Manage Layouts" page="NexusPackage"} {/form} {foreach from=$menuList item=menu} {foreachelse} {/foreach}
{tr}Existing menus{/tr}
{tr}Title{/tr} / {tr}Description{/tr} {tr}GUID{/tr} {tr}Type{/tr} {tr}# of Items{/tr} {tr}Editable{/tr} {tr}Actions{/tr}

{$menu.title|escape}

{$menu.description|escape}
{$menu.plugin_guid} {assign var=plugin_guid value=$menu.plugin_guid} {foreach from=$gNexusSystem->mPlugins.$plugin_guid.menu_types item=menu_type key=m_type} {if $m_type eq $menu.menu_type}{$menu_type.label}{/if} {/foreach} {$menu.items|@count} {if $menu.editable} {biticon ipackage="icons" iname="face-smile" iexplain="menu is editable"} {else} {biticon ipackage="icons" iname="face-sad" iexplain="menu is not editable"} {/if} {biticon ipackage="icons" iname="edit-clear" iexplain='sort menu items'} {biticon ipackage="icons" iname="list-add" iexplain='create and edit menu items'} {biticon ipackage="icons" iname="stock_attach" iexplain=assign} {biticon ipackage="icons" iname="mail-mark-junk" iexplain='remove dead links'} {biticon ipackage="icons" iname="edit" iexplain='configure menu'} {biticon ipackage="icons" iname="user-trash" iexplain='remove menu'}
{tr}No Records Found{/tr}
{/strip}