2017-03-23 12:13:50 +00:00
|
|
|
{{template "header.html" . }}
|
2017-12-27 23:38:37 +00:00
|
|
|
<div class="colstack panel_stack">
|
2019-03-16 11:31:10 +00:00
|
|
|
{{template "panel_group_menu.html" . }}
|
2017-08-20 09:39:02 +00:00
|
|
|
<main class="colstack_right">
|
2019-03-21 22:59:41 +00:00
|
|
|
{{template "panel_before_head.html" . }}
|
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" . }}
|