2016-12-26 04:44:07 +00:00
|
|
|
{{template "header.html" . }}
|
2017-12-27 23:38:37 +00:00
|
|
|
<div class="colstack panel_stack">
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2018-06-06 00:21:22 +00:00
|
|
|
{{template "panel_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>{{lang "panel_groups_head"}}</h1></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
2017-07-29 10:36:39 +00:00
|
|
|
<div id="panel_groups" class="colstack_item rowlist">
|
2017-03-18 07:23:02 +00:00
|
|
|
{{range .ItemList}}
|
2017-06-28 12:05:26 +00:00
|
|
|
<div class="rowitem panel_compactrow editable_parent">
|
2018-03-12 04:52:47 +00:00
|
|
|
<a{{if .CanEdit}} href="/panel/groups/edit/{{.ID}}"{{end}} class="panel_upshift">{{.Name}}</a>
|
2017-05-29 14:52:37 +00:00
|
|
|
<span class="panel_floater">
|
2018-03-11 09:33:49 +00:00
|
|
|
{{if .RankClass}}<a class="panel_tag panel_rank_tag panel_rank_tag_{{.RankClass}}" title="{{.Rank}}" aria-label="{{lang "panel_groups_rank_prefix"}}{{.Rank}}"></a>
|
2017-05-29 14:52:37 +00:00
|
|
|
{{else}}<span class="panel_tag">{{.Rank}}</span>{{end}}
|
|
|
|
|
2018-03-11 09:33:49 +00:00
|
|
|
{{if .CanEdit}}<a href="/panel/groups/edit/{{.ID}}" class="panel_tag panel_right_button edit_button" aria-label="{{lang "panel_groups_edit_group_button_aria"}}"></a>{{end}}
|
2017-03-18 07:23:02 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2016-12-26 04:44:07 +00:00
|
|
|
</div>
|
2018-03-11 09:33:49 +00:00
|
|
|
{{template "paginator.html" . }}
|
2019-02-10 05:52:26 +00:00
|
|
|
|
2018-03-12 04:52:47 +00:00
|
|
|
{{if .CurrentUser.Perms.EditGroup}}
|
2017-03-27 07:09:28 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="rowitem"><h1>{{lang "panel_groups_create_head"}}</h1></div>
|
2017-03-27 07:09:28 +00:00
|
|
|
</div>
|
2017-11-29 02:34:02 +00:00
|
|
|
<div class="colstack_item the_form">
|
2017-03-27 07:09:28 +00:00
|
|
|
<form action="/panel/groups/create/?session={{.CurrentUser.Session}}" method="post">
|
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_groups_create_name"}}</a></div>
|
|
|
|
<div class="formitem"><input name="group-name" type="text" placeholder="{{lang "panel_groups_create_name_placeholder"}}" /></div>
|
2017-03-27 07:09:28 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_groups_create_type"}}</a></div>
|
2017-03-27 07:09:28 +00:00
|
|
|
<div class="formitem">
|
|
|
|
<select name="group-type"{{if not .CurrentUser.Perms.EditGroupGlobalPerms}} disabled{{end}}>
|
|
|
|
<option selected>Member</option>
|
|
|
|
<option{{if not .CurrentUser.Perms.EditGroupSuperMod}} disabled{{end}}>Mod</option>
|
|
|
|
<option{{if not .CurrentUser.Perms.EditGroupAdmin}} disabled{{end}}>Admin</option>
|
|
|
|
<option>Banned</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_groups_create_tag"}}</a></div>
|
2017-03-27 07:09:28 +00:00
|
|
|
<div class="formitem"><input name="group-tag" type="text" /></div>
|
|
|
|
</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_groups_create_create_group_button"}}</button></div>
|
2017-03-27 07:09:28 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2018-03-12 04:52:47 +00:00
|
|
|
{{end}}
|
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" . }}
|