2017-03-18 07:23:02 +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">
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="rowitem"><h1>{{.Name}}{{lang "panel_group_head_suffix"}}</h1></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
2018-07-13 11:27:58 +00:00
|
|
|
<div id="panel_group" class="colstack_item the_form">
|
2017-03-18 07:23:02 +00:00
|
|
|
<form action="/panel/groups/edit/submit/{{.ID}}?session={{.CurrentUser.Session}}" method="post">
|
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_group_name"}}</a></div>
|
|
|
|
<div class="formitem"><input name="group-name" type="text" value="{{.Name}}" placeholder="{{lang "panel_group_name_placeholder"}}" /></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
2017-03-23 12:13:50 +00:00
|
|
|
{{if .CurrentUser.Perms.EditGroup}}
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_group_type"}}</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formitem">
|
|
|
|
<select name="group-type"{{if .DisableRank}} disabled{{end}}>
|
2018-10-02 10:00:52 +00:00
|
|
|
<option value="Guest"{{if eq .Rank "Guest"}} selected{{end}} disabled>{{lang "panel_groups_rank_guest"}}</option>
|
|
|
|
<option value="Member"{{if eq .Rank "Member"}} selected{{end}}>{{lang "panel_groups_rank_member"}}</option>
|
|
|
|
<option value="Mod"{{if eq .Rank "Mod"}} selected{{end}}{{if not .CurrentUser.Perms.EditGroupSuperMod}} disabled{{end}}>{{lang "panel_groups_rank_mod"}}</option>
|
|
|
|
<option value="Admin"{{if eq .Rank "Admin"}} selected{{end}}{{if not .CurrentUser.Perms.EditGroupAdmin}} disabled{{end}}>{{lang "panel_groups_rank_admin"}}</option>
|
|
|
|
<option value="Banned"{{if eq .Rank "Banned"}} selected{{end}}>{{lang "panel_groups_rank_banned"}}</option>
|
2017-03-18 07:23:02 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>{{end}}
|
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_group_tag"}}</a></div>
|
|
|
|
<div class="formitem"><input name="group-tag" type="text" value="{{.Tag}}" placeholder="{{lang "panel_group_tag_placeholder"}}" /></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
2018-07-13 11:27:58 +00:00
|
|
|
<div class="formrow form_button_row">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_group_update_button"}}</button></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
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" . }}
|