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

     1  <div class="colstack_item colstack_head">
     2  	<div class="rowitem">
     3  		<h1>{{lang "panel_themes_menus_items_head"}}</h1>
     4  		<h2 class="hguide">{{lang "panel_hints_reorder"}}</h2>
     5  	</div>
     6  </div>
     7  <div id="panel_menu_item_holder"class="colstack_item rowlist">
     8  	{{range .ItemList}}
     9  	<div class="panel_menu_item rowitem panel_compactrow editable_parent"data-miid="{{.ID}}">
    10  		<span class="grip"></span>
    11  		<a href="/panel/themes/menus/item/edit/{{.ID}}"class="editable_block panel_upshift">{{.Name}}</a>
    12  		<span class="panel_buttons">
    13  			<a href="/panel/themes/menus/item/edit/{{.ID}}"class="panel_tag panel_right_button edit_button"aria-label="{{lang "panel_themes_menus_items_edit_button_aria"}}"></a>
    14  			<a href="/panel/themes/menus/item/delete/submit/{{.ID}}?s={{$.CurrentUser.Session}}"class="panel_tag panel_right_button delete_button"aria-label="{{lang "panel_themes_menus_items_delete_button_aria"}}"></a>
    15  		</span>
    16  	</div>{{end}}
    17  </div>
    18  <div class="colstack_item rowlist panel_submitrow">
    19  	<div class="rowitem"><button id="panel_menu_items_order_button" class="formbutton">{{lang "panel_themes_menus_items_update_button"}}</button></div>
    20  </div>
    21  <div class="colstack_item colstack_head">
    22  	<div class="rowitem"><h1>{{lang "panel_themes_menus_create_head"}}</h1></div>
    23  </div>
    24  <form action="/panel/themes/menus/item/create/submit/?s={{.CurrentUser.Session}}"method="post">
    25  	<input name="mid"value="{{.MenuID}}"type="hidden">
    26  	<div id="panel_themes_menu_item_create"class="colstack_item the_form">
    27  		{{/** TODO: Let an admin move a menu item from one menu to another? **/}}
    28  		<div class="formrow">
    29  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_name"}}</a></div>
    30  			<div class="formitem"><input name="item-name" type="text" placeholder="{{lang "panel_themes_menus_name_placeholder"}}"></div>
    31  		</div>
    32  		<div class="formrow">
    33  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_htmlid"}}</a></div>
    34  			<div class="formitem"><input name="item-htmlid" type="text"></div>
    35  		</div>
    36  		<div class="formrow">
    37  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_cssclass"}}</a></div>
    38  			<div class="formitem"><input name="item-cssclass" type="text"></div>
    39  		</div>
    40  		<div class="formrow">
    41  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_position"}}</a></div>
    42  			<div class="formitem">
    43  				<select name="item-position">
    44  					<option selected value="left">left</option>
    45  					<option value="right">right</option>
    46  				</select>
    47  			</div>
    48  		</div>
    49  		<div class="formrow">
    50  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_path"}}</a></div>
    51  			<div class="formitem"><input name="item-path" type="text" value="/"></div>
    52  		</div>
    53  		<div class="formrow">
    54  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_aria"}}</a></div>
    55  			<div class="formitem"><input name="item-aria" type="text" placeholder="{{lang "panel_themes_menus_aria_placeholder"}}"></div>
    56  		</div>
    57  		<div class="formrow">
    58  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_tooltip"}}</a></div>
    59  			<div class="formitem"><input name="item-tooltip" type="text" placeholder="{{lang "panel_themes_menus_tooltip_placeholder"}}"></div>
    60  		</div>
    61  		<div class="formrow">
    62  			<div class="formitem formlabel"><a>{{lang "panel_themes_menus_permissions"}}</a></div>
    63  			<div class="formitem"><select name="item-permissions">
    64  				<option selected value="everyone">{{lang "panel_themes_menus_everyone" }}</option>
    65  				<option value="guest-only">{{lang "panel_themes_menus_guestonly"}}</option>
    66  				<option value="member-only">{{lang "panel_themes_menus_memberonly"}}</option>
    67  				<option value="supermod-only">{{lang "panel_themes_menus_supermodonly"}}</option>
    68  				<option value="admin-only">{{lang "panel_themes_menus_adminonly"}}</option>
    69  			</select></div>
    70  		</div>
    71  		<div class="formrow">
    72  			<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_themes_menus_create_button"}}</button></div>
    73  		</div>
    74  	</div>
    75  </form>