14a14b7e80
This commit might be a little broken, another is coming to fix things up! The topics list is now paginated. Refactored the error handling system. Added the Trumboyg WYSIWYG editor for Cosora. Moved Delete() out of the TopicStore and into *Topic You can now bulk delete and bulk lock topics on Cosora. h1s are now formatted properly on Firefox. Added more ARIA Labels. SuperModOnly is now a piece of middleware for the Control Panel routes. Refactored and extended the router generator. Improved the SEO for the paginators. Added bits of Microdata to improve SEO further. Wrote benchmarks for users.Get() and users.BypassGet() More errors are caught now. You can now attach pcss files to posts. Improved the error logging for JavaScript. Topic list avatars now link to the associated profiles. Added last poster avatars to the forum list.
47 lines
2.1 KiB
HTML
47 lines
2.1 KiB
HTML
{{template "header.html" . }}
|
|
<nav class="colstack_left" aria-label="The control panel menu">
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><a href="/panel/groups/edit/{{.ID}}">Group Editor</a></div>
|
|
</div>
|
|
<div class="colstack_item rowmenu">
|
|
<div class="rowitem passive"><a href="/panel/groups/edit/{{.ID}}">General</a></div>
|
|
<div class="rowitem passive"><a>Promotions</a></div>
|
|
<div class="rowitem passive"><a href="/panel/groups/edit/perms/{{.ID}}">Permissions</a></div>
|
|
</div>
|
|
{{template "panel-inner-menu.html" . }}
|
|
</nav>
|
|
<main class="colstack_right">
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>{{.Name}} Group</h1></div>
|
|
</div>
|
|
<div id="panel_group" class="colstack_item">
|
|
<form action="/panel/groups/edit/submit/{{.ID}}?session={{.CurrentUser.Session}}" method="post">
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>Name</a></div>
|
|
<div class="formitem"><input name="group-name" type="text" value="{{.Name}}" placeholder="Random Group" /></div>
|
|
</div>
|
|
{{if .CurrentUser.Perms.EditGroup}}
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>Type</a></div>
|
|
<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">
|
|
<div class="formitem formlabel"><a>Tag</a></div>
|
|
<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>
|
|
</main>
|
|
{{template "footer.html" . }}
|