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">
|
2020-02-04 11:47:03 +00:00
|
|
|
<div class="rowitem"><h1>{{.Name}}{{lang "panel_group_head_suffix"}} - #{{.ID}}</h1></div>
|
2017-03-23 12:13:50 +00:00
|
|
|
</div>
|
2019-08-31 22:59:00 +00:00
|
|
|
<form action="/panel/groups/edit/perms/submit/{{.ID}}?s={{.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">
|
2019-11-08 07:52:30 +00:00
|
|
|
<select name="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">
|
2019-11-08 07:52:30 +00:00
|
|
|
<select name="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}}
|
2020-02-04 11:47:03 +00:00
|
|
|
{{if .CurrentUser.Perms.EditGroupGlobalPerms}}
|
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem"><h1>{{lang "panel_group_mod_permissions"}}</h1></div>
|
|
|
|
</div>
|
|
|
|
<div class="colstack_item rowlist formlist the_form panel_group_perms">
|
|
|
|
{{range .ModPerms}}
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem">
|
|
|
|
<a>{{.LangStr}}</a>
|
|
|
|
<div class="to_right">
|
|
|
|
<select name="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}}
|
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>
|
2019-10-11 00:57:33 +00:00
|
|
|
{{template "footer.html" . }}
|