2017-03-23 12:13:50 +00:00
|
|
|
{{template "header.html" . }}
|
2017-12-27 23:38:37 +00:00
|
|
|
<div class="colstack panel_stack">
|
2017-10-30 09:57:08 +00:00
|
|
|
<nav class="colstack_left" aria-label="The control panel menu">
|
2017-03-23 12:13:50 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
2018-07-13 11:27:58 +00:00
|
|
|
<div class="rowitem"><a href="/panel/groups/edit/{{.ID}}">{{lang "panel_group_menu_head"}}</a></div>
|
2017-03-23 12:13:50 +00:00
|
|
|
</div>
|
2017-07-29 10:36:39 +00:00
|
|
|
<div class="colstack_item rowmenu">
|
2018-07-13 11:27:58 +00:00
|
|
|
<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>
|
2017-03-23 12:13:50 +00:00
|
|
|
</div>
|
2018-06-06 00:21:22 +00:00
|
|
|
{{template "panel_inner_menu.html" . }}
|
2017-08-20 09:39:02 +00:00
|
|
|
</nav>
|
|
|
|
<main class="colstack_right">
|
2017-03-23 12:13:50 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
2018-07-13 11:27:58 +00:00
|
|
|
<div class="rowitem"><h1>{{.Name}}{{lang "panel_group_head_suffix"}}</h1></div>
|
2017-03-23 12:13:50 +00:00
|
|
|
</div>
|
|
|
|
<form action="/panel/groups/edit/perms/submit/{{.ID}}?session={{.CurrentUser.Session}}" method="post">
|
2018-01-08 08:53:51 +00:00
|
|
|
{{if .CurrentUser.Perms.EditGroupLocalPerms}}
|
2018-09-02 05:43:17 +00:00
|
|
|
<div class="colstack_item rowlist formlist the_form panel_group_perms">
|
2017-03-23 12:13:50 +00:00
|
|
|
{{range .LocalPerms}}
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem">
|
|
|
|
<a>{{.LangStr}}</a>
|
2018-01-08 08:53:51 +00:00
|
|
|
<div class="to_right">
|
2017-03-23 12:13:50 +00:00
|
|
|
<select name="group-perm-{{.Name}}">
|
2018-07-13 11:27:58 +00:00
|
|
|
<option{{if .Toggle}} selected{{end}} value=1>{{lang "option_yes"}}</option>
|
|
|
|
<option{{if not .Toggle}} selected{{end}} value=0>{{lang "option_no"}}</option>
|
2017-03-23 12:13:50 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
<div class="formrow">
|
2018-07-13 11:27:58 +00:00
|
|
|
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">{{lang "panel_group_update_button"}}</button></div>
|
2017-03-23 12:13:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-08 08:53:51 +00:00
|
|
|
{{end}}
|
|
|
|
{{if .CurrentUser.Perms.EditGroupGlobalPerms}}
|
2017-03-23 12:13:50 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
2018-07-13 11:27:58 +00:00
|
|
|
<div class="rowitem"><h1>{{lang "panel_group_extended_permissions"}}</h1></div>
|
2017-03-23 12:13:50 +00:00
|
|
|
</div>
|
2018-09-02 05:43:17 +00:00
|
|
|
<div class="colstack_item rowlist formlist the_form panel_group_perms">
|
2017-03-23 12:13:50 +00:00
|
|
|
{{range .GlobalPerms}}
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem">
|
|
|
|
<a>{{.LangStr}}</a>
|
2018-01-08 08:53:51 +00:00
|
|
|
<div class="to_right">
|
2017-03-23 12:13:50 +00:00
|
|
|
<select name="group-perm-{{.Name}}">
|
2018-07-13 11:27:58 +00:00
|
|
|
<option{{if .Toggle}} selected{{end}} value=1>{{lang "option_yes"}}</option>
|
|
|
|
<option{{if not .Toggle}} selected{{end}} value=0>{{lang "option_no"}}</option>
|
2017-03-23 12:13:50 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
<div class="formrow">
|
2018-07-13 11:27:58 +00:00
|
|
|
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">{{lang "panel_group_update_button"}}</button></div>
|
2017-03-23 12:13:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-08 08:53:51 +00:00
|
|
|
{{end}}
|
2017-03-23 12:13:50 +00:00
|
|
|
</form>
|
2017-08-20 09:39:02 +00:00
|
|
|
</main>
|
2017-11-23 05:37:08 +00:00
|
|
|
</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
{{template "footer.html" . }}
|