2016-12-26 04:44:07 +00:00
|
|
|
{{template "header.html" . }}
|
|
|
|
{{template "panel-menu.html" . }}
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="colstack_right">
|
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem rowhead"><a>Groups</a></div>
|
|
|
|
</div>
|
|
|
|
<div class="colstack_item">
|
|
|
|
{{range .ItemList}}
|
|
|
|
<div class="rowitem editable_parent" style="font-weight: normal;text-transform: none;">
|
|
|
|
<a href="/panel/groups/edit/{{.ID}}" style="font-size: 20px;position:relative;top: -2px;text-transform: none;">{{.Name}}</a>
|
|
|
|
<span style="float: right;">
|
|
|
|
{{if .RankEmoji}}<a class="username" title="{{.Rank}}">{{.RankEmoji}}</a>
|
|
|
|
{{else}}<span class="username">{{.Rank}}</span>{{end}}
|
|
|
|
|
|
|
|
{{if .CanEdit}}<a href="/panel/groups/edit/{{.ID}}" class="username">Edit</a>{{end}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2016-12-26 04:44:07 +00:00
|
|
|
</div>
|
2017-03-27 07:09:28 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem rowhead"><a>Create Group</a></div>
|
|
|
|
</div>
|
|
|
|
<div class="colstack_item">
|
|
|
|
<form action="/panel/groups/create/?session={{.CurrentUser.Session}}" method="post">
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><a>Name</a></div>
|
|
|
|
<div class="formitem"><input name="group-name" type="text" /></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><a>Type</a></div>
|
|
|
|
<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">
|
|
|
|
<div class="formitem"><a>Tag</a></div>
|
|
|
|
<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>
|
2016-12-26 04:44:07 +00:00
|
|
|
</div>
|
|
|
|
{{template "footer.html" . }}
|