gosora/templates/panel-group-edit-perms.html
Azareal 02a0cbb6bb More work on the Shadow theme.
Switched gopsutil with a temporary more stable fork.
Ping PostgreSQL upon connecting. We need a global solution for connection drops. A connection timeout, perhaps?
Added the rowmenu CSS class for styling sidebar menus.
Added the real_first_child CSS class, we might be able to get around using it by redoing the <form> nesting.
Added the rowlist CSS class.
Added the bgavatars CSS class.
Added avatars to the User Manager.
Added limited responsivity to the Shadow Theme, I might have broken some things in the other themes, I'll fix that soon!
A per-theme post-avatar-bg.jpg file is now used for the first topic layout rather than the global white-dot.jpg file.
2017-07-29 11:36:39 +01:00

64 lines
2.1 KiB
HTML

{{template "header.html" . }}
<div 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" . }}
</div>
<div class="colstack_right">
<div class="colstack_item colstack_head">
<div class="rowitem"><a>{{.Name}} Group</a></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"><a>Extended Permissions</a></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>
</div>
{{template "footer.html" . }}