2019-09-30 10:23:59 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem"><h1>{{lang "panel_groups_head"}}</h1></div>
|
|
|
|
</div>
|
|
|
|
<div id="panel_groups" class="colstack_item rowlist">
|
|
|
|
{{range .ItemList}}
|
|
|
|
<div class="rowitem panel_compactrow editable_parent">
|
|
|
|
<a{{if .CanEdit}} href="/panel/groups/edit/{{.ID}}"{{end}} class="panel_upshift">{{.Name}}</a>
|
|
|
|
<span class="panel_floater">
|
|
|
|
{{if .RankClass}}<a class="panel_tag panel_rank_tag panel_rank_tag_{{.RankClass}}" title="{{.Rank}}" aria-label="{{lang "panel_groups_rank_prefix"}}{{.Rank}}"></a>
|
|
|
|
{{else}}<span class="panel_tag">{{.Rank}}</span>{{end}}
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2019-09-30 10:23:59 +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}}
|
|
|
|
</span>
|
2016-12-26 04:44:07 +00:00
|
|
|
</div>
|
2019-09-30 10:23:59 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{template "paginator.html" . }}
|
2019-02-10 05:52:26 +00:00
|
|
|
|
2019-09-30 10:23:59 +00:00
|
|
|
{{if .CurrentUser.Perms.EditGroup}}
|
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem"><h1>{{lang "panel_groups_create_head"}}</h1></div>
|
|
|
|
</div>
|
|
|
|
<div class="colstack_item the_form">
|
|
|
|
<form action="/panel/groups/create/?s={{.CurrentUser.Session}}" method="post">
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_groups_create_name"}}</a></div>
|
2019-11-08 07:52:30 +00:00
|
|
|
<div class="formitem"><input name="name" type="text" placeholder="{{lang "panel_groups_create_name_placeholder"}}" /></div>
|
2019-09-30 10:23:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_groups_create_type"}}</a></div>
|
|
|
|
<div class="formitem">
|
2019-11-08 07:52:30 +00:00
|
|
|
<select name="type"{{if not .CurrentUser.Perms.EditGroupGlobalPerms}} disabled{{end}}>
|
2019-09-30 10:23:59 +00:00
|
|
|
<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>
|
2017-03-27 07:09:28 +00:00
|
|
|
</div>
|
2019-09-30 10:23:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_groups_create_tag"}}</a></div>
|
2019-11-08 07:52:30 +00:00
|
|
|
<div class="formitem"><input name="tag" type="text" /></div>
|
2019-09-30 10:23:59 +00:00
|
|
|
</div>
|
|
|
|
<div class="formrow form_button_row">
|
|
|
|
<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_groups_create_button"}}</button></div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{end}}
|