{strip} {form legend="Add / Edit menu items"}
{formlabel label="Link to content" for="content_type_guid"} {forminput} {html_options options=$contentTypes name=content_type_guid id=content_type_guid selected=$smarty.request.content_type_guid} {/forminput} {forminput} {formhelp note=""} {/forminput} {forminput} {html_options name="content" options=$contentList onchange="document.getElementById('rsrc').value=options[selectedIndex].value;document.getElementById('title').value=options[selectedIndex].label.replace(/ \[id.*?\]/,'');document.getElementById('rsrc_type').value='content_id';"} {/forminput}
{if $menuList}
{formlabel label="Insert menu" for="menu_list"} {forminput} {html_options name="menu_list" options=$menuList onchange="document.getElementById('rsrc').value=options[selectedIndex].value;document.getElementById('title').value=options[selectedIndex].label.replace(/ \[id.*?\]/,'');document.getElementById('rsrc_type').value='menu_id';"} {/forminput}
{/if}

{formlabel label="Title" for="title"} {forminput} {formhelp note="Enter a title for your menu item."} {/forminput}
{formlabel label="Hint" for="hint"} {forminput} {formhelp note="A hint for this item. This hint is visible when you hover over the menu item - hint is set as 'title' attribute for link (for menu plugins that support this feature)."} {/forminput}
{formlabel label="Resource type" for="rsrc_type"} {forminput} {html_options name="rsrc_type" id="rsrc_type" options=$rsrcTypes selected=`$editItem.rsrc_type`} {formhelp note="Here you can pick the resource type you wish to link to."} {/forminput}
{formlabel label="Resource link" for="rsrc"} {forminput} {formhelp note="
External URL
enter full link. e.g.: http://www.example.com
Internal URL
enter link beginning from your bitweaver installation directory. e.g.: wiki/rankings.php
Content ID
enter the number referring to some content (e.g. the number assoctiated with each item in the content dropdown is a content ID). e.g.: 3
Structure ID
Enter the structure ID that you want to use.
"} {/forminput}
{formlabel label="Permission" for="perm"} {forminput} {html_options name="perm" id="perm" options=$perms selected=`$editItem.perm`} {formhelp note="Permission required to view this item and any children associated with it. If no permission is selected, the menu is visible to all users."} {/forminput}
{if !$editItem.item_id}
{formlabel label="Insert after" for="after_ref_id"} {forminput} {formhelp note="Pick the position after which you want to add the item."} {/forminput}
{/if}
{/form} {/strip}