2017-03-18 07:23:02 +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-18 07:23:02 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="rowitem"><a href="/panel/groups/edit/{{.ID}}">{{lang "panel_group_menu_head"}}</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
2017-07-29 10:36:39 +00:00
|
|
|
<div class="colstack_item rowmenu">
|
2018-03-11 09:33:49 +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-18 07:23:02 +00:00
|
|
|
</div>
|
|
|
|
{{template "panel-inner-menu.html" . }}
|
2017-08-20 09:39:02 +00:00
|
|
|
</nav>
|
|
|
|
<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>
|
2017-05-29 14:52:37 +00:00
|
|
|
<div id="panel_group" class="colstack_item">
|
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}}>
|
|
|
|
<option{{if eq .Rank "Guest"}} selected{{end}} disabled>Guest</option>
|
|
|
|
<option{{if eq .Rank "Member"}} selected{{end}}>Member</option>
|
|
|
|
<option{{if eq .Rank "Mod"}} selected{{end}}{{if not .CurrentUser.Perms.EditGroupSuperMod}} disabled{{end}}>Mod</option>
|
|
|
|
<option{{if eq .Rank "Admin"}} selected{{end}}{{if not .CurrentUser.Perms.EditGroupAdmin}} disabled{{end}}>Admin</option>
|
|
|
|
<option{{if eq .Rank "Banned"}} selected{{end}}>Banned</option>
|
|
|
|
</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>
|
|
|
|
<div class="formrow">
|
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" . }}
|