66 lines
2.5 KiB
HTML
66 lines
2.5 KiB
HTML
{{template "header.html" . }}
|
|
<div class="colstack panel_stack">
|
|
<nav class="colstack_left" aria-label="The control panel menu">
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><a href="/panel/groups/edit/{{.ID}}">{{lang "panel_group_menu_head"}}</a></div>
|
|
</div>
|
|
<div class="colstack_item rowmenu">
|
|
<div class="rowitem passive"><a href="/panel/groups/edit/{{.ID}}">{{lang "panel_group_menu_general"}}</a></div>
|
|
<div class="rowitem passive"><a>{{lang "panel_group_menu_promotions"}}</a></div>
|
|
<div class="rowitem passive"><a href="/panel/groups/edit/perms/{{.ID}}">{{lang "panel_group_menu_permissions"}}</a></div>
|
|
</div>
|
|
{{template "panel_inner_menu.html" . }}
|
|
</nav>
|
|
<main class="colstack_right">
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>{{.Name}}{{lang "panel_group_head_suffix"}}</h1></div>
|
|
</div>
|
|
<form action="/panel/groups/edit/perms/submit/{{.ID}}?session={{.CurrentUser.Session}}" method="post">
|
|
{{if .CurrentUser.Perms.EditGroupLocalPerms}}
|
|
<div class="colstack_item rowlist formlist the_form panel_group_perms">
|
|
{{range .LocalPerms}}
|
|
<div class="formrow">
|
|
<div class="formitem">
|
|
<a>{{.LangStr}}</a>
|
|
<div class="to_right">
|
|
<select name="group-perm-{{.Name}}">
|
|
<option{{if .Toggle}} selected{{end}} value=1>{{lang "option_yes"}}</option>
|
|
<option{{if not .Toggle}} selected{{end}} value=0>{{lang "option_no"}}</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
<div class="formrow">
|
|
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">{{lang "panel_group_update_button"}}</button></div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
{{if .CurrentUser.Perms.EditGroupGlobalPerms}}
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>{{lang "panel_group_extended_permissions"}}</h1></div>
|
|
</div>
|
|
<div class="colstack_item rowlist formlist the_form panel_group_perms">
|
|
{{range .GlobalPerms}}
|
|
<div class="formrow">
|
|
<div class="formitem">
|
|
<a>{{.LangStr}}</a>
|
|
<div class="to_right">
|
|
<select name="group-perm-{{.Name}}">
|
|
<option{{if .Toggle}} selected{{end}} value=1>{{lang "option_yes"}}</option>
|
|
<option{{if not .Toggle}} selected{{end}} value=0>{{lang "option_no"}}</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
<div class="formrow">
|
|
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">{{lang "panel_group_update_button"}}</button></div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
</form>
|
|
</main>
|
|
</div>
|
|
{{template "footer.html" . }}
|