2018-05-11 05:41:51 +00:00
|
|
|
{{/** TODO: Set the order based on the order here **/}}
|
|
|
|
{{/** TODO: Write the backend code and JS code for saving this menu **/}}
|
2019-09-30 10:23:59 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem"><h1>{{lang "panel_themes_menus_edit_head"}}</h1></div>
|
|
|
|
</div>
|
2020-07-19 03:26:56 +00:00
|
|
|
<form action="/panel/themes/menus/item/edit/submit/{{.Item.ID}}?s={{.CurrentUser.Session}}"method="post">
|
|
|
|
<div id="panel_themes_menu_item_edit"class="colstack_item the_form">
|
2019-09-30 10:23:59 +00:00
|
|
|
{{/** TODO: Let an admin move a menu item from one menu to another? **/}}
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_name"}}</a></div>
|
2020-07-19 03:26:56 +00:00
|
|
|
<div class="formitem"><input name="item-name"type="text"value="{{.Item.Name}}"></div>
|
2019-09-30 10:23:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_htmlid"}}</a></div>
|
2020-07-19 03:26:56 +00:00
|
|
|
<div class="formitem"><input name="item-htmlid"type="text"value="{{.Item.HTMLID}}"></div>
|
2019-09-30 10:23:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_cssclass"}}</a></div>
|
2020-07-19 03:26:56 +00:00
|
|
|
<div class="formitem"><input name="item-cssclass"type="text"value="{{.Item.CSSClass}}"></div>
|
2019-09-30 10:23:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_position"}}</a></div>
|
|
|
|
<div class="formitem">
|
|
|
|
<select name="item-position">
|
|
|
|
<option{{if eq .Item.Position "left"}} selected{{end}} value="left">left</option>
|
|
|
|
<option{{if eq .Item.Position "right"}} selected{{end}} value="right">right</option>
|
|
|
|
</select>
|
2018-05-11 05:41:51 +00:00
|
|
|
</div>
|
2019-09-30 10:23:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_path"}}</a></div>
|
2020-07-19 03:26:56 +00:00
|
|
|
<div class="formitem"><input name="item-path"type="text"value="{{.Item.Path}}"></div>
|
2019-09-30 10:23:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_aria"}}</a></div>
|
2020-07-19 03:26:56 +00:00
|
|
|
<div class="formitem"><input name="item-aria"type="text"value="{{.Item.Aria}}"></div>
|
2019-09-30 10:23:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_tooltip"}}</a></div>
|
2020-07-19 03:26:56 +00:00
|
|
|
<div class="formitem"><input name="item-tooltip"type="text"value="{{.Item.Tooltip}}"></div>
|
2019-09-30 10:23:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_tmplname"}}</a></div>
|
2020-07-19 03:26:56 +00:00
|
|
|
<div class="formitem"><input name="item-tmplname"type="text"value="{{.Item.TmplName}}"></div>
|
2019-09-30 10:23:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_themes_menus_permissions"}}</a></div>
|
|
|
|
<div class="formitem"><select name="item-permissions">
|
|
|
|
<option value="everyone">{{lang "panel_themes_menus_everyone" }}</option>
|
|
|
|
<option{{if .Item.GuestOnly}} selected{{end}} value="guest-only">{{lang "panel_themes_menus_guestonly"}}</option>
|
|
|
|
<option{{if .Item.MemberOnly}} selected{{end}} value="member-only">{{lang "panel_themes_menus_memberonly"}}</option>
|
|
|
|
<option{{if .Item.SuperModOnly}} selected{{end}} value="supermod-only">{{lang "panel_themes_menus_supermodonly"}}</option>
|
|
|
|
<option{{if .Item.AdminOnly}} selected{{end}} value="admin-only">{{lang "panel_themes_menus_adminonly"}}</option>
|
|
|
|
</select></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem">
|
2020-07-19 03:26:56 +00:00
|
|
|
<button name="panel-button"class="formbutton">{{lang "panel_themes_menus_edit_update_button"}}</button>
|
2018-05-11 05:41:51 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-30 10:23:59 +00:00
|
|
|
</div>
|
|
|
|
</form>
|