99da1fcbaa
Added support for temporary bans. Moved the Gosora specific template logic out of main.go and into template_init.go Added an internal temporary group API. We now use h1s in the theme headers. There may be some issues with the themes other than Shadow which we may need to resolve. Added ARIA attributes in a few places for improved accessibility. Added support for inputs in links for the .edit_field API. Removed a few unneccesary prepared statements.
64 lines
2.1 KiB
HTML
64 lines
2.1 KiB
HTML
{{template "header.html" . }}
|
|
<nav class="colstack_left">
|
|
<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>
|
|
<form action="/panel/groups/edit/perms/submit/{{.ID}}?session={{.CurrentUser.Session}}" method="post">
|
|
<div id="panel_group" class="colstack_item rowlist">
|
|
{{if .CurrentUser.Perms.EditGroupLocalPerms}}
|
|
{{range .LocalPerms}}
|
|
<div class="formrow">
|
|
<div class="formitem">
|
|
<a>{{.LangStr}}</a>
|
|
<div style="float: right;">
|
|
<select name="group-perm-{{.Name}}">
|
|
<option{{if .Toggle}} selected{{end}} value=1>Yes</option>
|
|
<option{{if not .Toggle}} selected{{end}} value=0>No</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
{{end}}
|
|
<div class="formrow">
|
|
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">Update Group</button></div>
|
|
</div>
|
|
</div>
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>Extended Permissions</h1></div>
|
|
</div>
|
|
<div class="colstack_item rowlist">
|
|
{{if .CurrentUser.Perms.EditGroupGlobalPerms}}
|
|
{{range .GlobalPerms}}
|
|
<div class="formrow">
|
|
<div class="formitem">
|
|
<a>{{.LangStr}}</a>
|
|
<div style="float: right;">
|
|
<select name="group-perm-{{.Name}}">
|
|
<option{{if .Toggle}} selected{{end}} value=1>Yes</option>
|
|
<option{{if not .Toggle}} selected{{end}} value=0>No</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
{{end}}
|
|
<div class="formrow">
|
|
<div class="formitem"><button name="panel-button" class="formbutton form_middle_button">Update Group</button></div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</main>
|
|
{{template "footer.html" . }}
|