2016-12-26 04:44:07 +00:00
|
|
|
{{template "header.html" . }}
|
2017-11-23 05:37:08 +00:00
|
|
|
<div class="colstack">
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2017-11-23 05:37:08 +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">
|
2017-08-27 09:33:45 +00:00
|
|
|
<div class="rowitem"><h1>Groups</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">
|
2017-05-29 14:52:37 +00:00
|
|
|
<a href="/panel/groups/edit/{{.ID}}" class="panel_upshift">{{.Name}}</a>
|
|
|
|
<span class="panel_floater">
|
|
|
|
{{if .RankClass}}<a class="panel_tag panel_rank_tag panel_rank_tag_{{.RankClass}}" title="{{.Rank}}"></a>
|
|
|
|
{{else}}<span class="panel_tag">{{.Rank}}</span>{{end}}
|
|
|
|
|
2017-12-10 03:43:30 +00:00
|
|
|
{{if .CanEdit}}<a href="/panel/groups/edit/{{.ID}}" class="panel_tag panel_right_button edit_button" aria-label="Edit Group"></a>{{end}}
|
2017-03-18 07:23:02 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2016-12-26 04:44:07 +00:00
|
|
|
</div>
|
2017-08-15 13:47:56 +00:00
|
|
|
{{if gt .LastPage 1}}
|
|
|
|
<div class="pageset">
|
|
|
|
{{if gt .Page 1}}<div class="pageitem"><a href="?page={{subtract .Page 1}}">Prev</a></div>{{end}}
|
|
|
|
{{range .PageList}}
|
|
|
|
<div class="pageitem"><a href="?page={{.}}">{{.}}</a></div>
|
|
|
|
{{end}}
|
|
|
|
{{if ne .LastPage .Page}}<div class="pageitem"><a href="?page={{add .Page 1}}">Next</a></div>{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2017-03-27 07:09:28 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
2017-08-27 09:33:45 +00:00
|
|
|
<div class="rowitem"><h1>Create Group</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">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>Name</a></div>
|
2017-03-27 07:09:28 +00:00
|
|
|
<div class="formitem"><input name="group-name" type="text" /></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>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">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>Tag</a></div>
|
2017-03-27 07:09:28 +00:00
|
|
|
<div class="formitem"><input name="group-tag" type="text" /></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><button name="panel-button" class="formbutton">Add Group</button></div>
|
|
|
|
</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" . }}
|