github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_themes_menus_item_edit.html (about)

     1  {{/** TODO: Set the order based on the order here **/}}
     2  {{/** TODO: Write the backend code and JS code for saving this menu **/}}
     3  <div class="colstack_item colstack_head">
     4  	<div class="rowitem"><h1>{{lang "panel_themes_menus_edit_head"}}</h1></div>
     5  </div>
     6  <form action="/panel/themes/menus/item/edit/submit/{{.Item.ID}}?s={{.CurrentUser.Session}}"method="post">
     7  	<div id="panel_themes_menu_item_edit"class="colstack_item the_form">
     8  		{{/** TODO: Let an admin move a menu item from one menu to another? **/}}
     9  		<div class="formrow">
    10  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_name"}}</a></div>
    11  			<div class="formitem"><input name="item-name"type="text"value="{{.Item.Name}}"></div>
    12  		</div>
    13  		<div class="formrow">
    14  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_htmlid"}}</a></div>
    15  			<div class="formitem"><input name="item-htmlid"type="text"value="{{.Item.HTMLID}}"></div>
    16  		</div>
    17  		<div class="formrow">
    18  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_cssclass"}}</a></div>
    19  			<div class="formitem"><input name="item-cssclass"type="text"value="{{.Item.CSSClass}}"></div>
    20  		</div>
    21  		<div class="formrow">
    22  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_position"}}</a></div>
    23  			<div class="formitem">
    24  				<select name="item-position">
    25  					<option{{if eq .Item.Position "left"}} selected{{end}} value="left">left</option>
    26  					<option{{if eq .Item.Position "right"}} selected{{end}} value="right">right</option>
    27  				</select>
    28  			</div>
    29  		</div>
    30  		<div class="formrow">
    31  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_path"}}</a></div>
    32  			<div class="formitem"><input name="item-path"type="text"value="{{.Item.Path}}"></div>
    33  		</div>
    34  		<div class="formrow">
    35  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_aria"}}</a></div>
    36  			<div class="formitem"><input name="item-aria"type="text"value="{{.Item.Aria}}"></div>
    37  		</div>
    38  		<div class="formrow">
    39  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_tooltip"}}</a></div>
    40  			<div class="formitem"><input name="item-tooltip"type="text"value="{{.Item.Tooltip}}"></div>
    41  		</div>
    42  		<div class="formrow">
    43  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_tmplname"}}</a></div>
    44  			<div class="formitem"><input name="item-tmplname"type="text"value="{{.Item.TmplName}}"></div>
    45  		</div>
    46  		<div class="formrow">
    47  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_permissions"}}</a></div>
    48  			<div class="formitem"><select name="item-permissions">
    49  				<option value="everyone">{{lang "panel_themes_menus_everyone" }}</option>
    50  				<option{{if .Item.GuestOnly}} selected{{end}} value="guest-only">{{lang "panel_themes_menus_guestonly"}}</option>
    51  				<option{{if .Item.MemberOnly}} selected{{end}} value="member-only">{{lang "panel_themes_menus_memberonly"}}</option>
    52  				<option{{if .Item.SuperModOnly}} selected{{end}} value="supermod-only">{{lang "panel_themes_menus_supermodonly"}}</option>
    53  				<option{{if .Item.AdminOnly}} selected{{end}} value="admin-only">{{lang "panel_themes_menus_adminonly"}}</option>
    54  			</select></div>
    55  		</div>
    56  		<div class="formrow">
    57  			<div class="formitem">
    58  				<button name="panel-button"class="formbutton">{{lang "panel_themes_menus_edit_update_button"}}</button>
    59  			</div>
    60  		</div>
    61  	</div>
    62  </form>