2017-03-18 07:23:02 +00:00
|
|
|
{{template "header.html" . }}
|
|
|
|
<div class="colstack_left">
|
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem rowhead"><a href="/panel/groups/edit/{{.ID}}">Group Editor</a></div>
|
|
|
|
</div>
|
|
|
|
<div class="colstack_item">
|
|
|
|
<div class="rowitem passive"><a href="/panel/groups/edit/{{.ID}}">General</a></div>
|
|
|
|
<div class="rowitem passive"><a>Promotions</a></div>
|
2017-03-23 12:13:50 +00:00
|
|
|
<div class="rowitem passive"><a href="/panel/groups/edit/perms/{{.ID}}">Permissions</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
|
|
|
{{template "panel-inner-menu.html" . }}
|
|
|
|
</div>
|
|
|
|
<div class="colstack_right">
|
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem rowhead"><a>{{.Name}} Group</a></div>
|
|
|
|
</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">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>Name</a></div>
|
2017-06-05 11:57:27 +00:00
|
|
|
<div class="formitem"><input name="group-name" type="text" value="{{.Name}}" placeholder="Random Group" /></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">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>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">
|
2017-05-29 14:52:37 +00:00
|
|
|
<div class="formitem formlabel"><a>Tag</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formitem"><input name="group-tag" type="text" value="{{.Tag}}" placeholder="VIP" /></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><button name="panel-button" class="formbutton">Update Group</button></div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
{{template "footer.html" . }}
|