2702b745d5
Added the EditUser, EditUserEmail, EditUserPassword, EditUserGroup, EditUserGroupSuperMod and EditUserGroupAdmin permissions. Allocations are now tracked in the benchmarks. The topics template is now tracked in the benchmarks. The entire topic, topics, forum and forums routes are now benchmarked. Initial attempts to benchmark the router have begun, I'll probably have a benchmark in a later commit without the fluff so that it's easier to see it's performance impact. Improved the security on some of the moderation routes. SettingLabel is now OptionLabel for easier reuse. Moved one of the inline queries into a prepared statement. Added the initial draft for the new router. Fixed a bug where you lose all of your guest permissions when your session is invalidated.
45 lines
2.0 KiB
HTML
45 lines
2.0 KiB
HTML
{{template "header.html" . }}
|
|
<div class="colblock_left">
|
|
<div class="rowitem"><a>Control Panel</a></div>
|
|
<div class="rowitem passive"><a href="/panel/forums/">Forums</a></div>
|
|
<div class="rowitem passive"><a href="/panel/settings/">Settings</a></div>
|
|
<div class="rowitem passive"><a href="/panel/plugins/">Plugins</a></div>
|
|
<div class="rowitem passive"><a href="/panel/users/">Users</a></div>
|
|
<div class="rowitem passive"><a href="/panel/groups/">Groups</a></div>
|
|
<div class="rowitem passive"><a>Coming Soon</a></div>
|
|
<div class="rowitem passive"><a>Coming Soon</a></div>
|
|
<div class="rowitem passive"><a>Coming Soon</a></div>
|
|
<div class="rowitem passive"><a href="/forum/-1">Reports</a></div>
|
|
</div>
|
|
<div class="colblock_right">
|
|
<div class="rowitem"><a>User Editor</a></div>
|
|
</div>
|
|
<div class="colblock_right">
|
|
<form action="/panel/users/edit/submit/{{.Something.ID}}?session={{.CurrentUser.Session}}" method="post">
|
|
<div class="formrow">
|
|
<div class="formitem"><a>Name</a></div>
|
|
<div class="formitem"><input name="user-name" type="text" value="{{.Something.Name}}" placeholder="Jane Doe" /></div>
|
|
</div>
|
|
{{if .CurrentUser.Perms.EditUserPassword}}<div class="formrow">
|
|
<div class="formitem"><a>Password</a></div>
|
|
<div class="formitem"><input name="user-password" type="password" placeholder="*****" /></div>
|
|
</div>{{end}}
|
|
{{if .CurrentUser.Perms.EditUserEmail}}<div class="formrow">
|
|
<div class="formitem"><a>Email</a></div>
|
|
<div class="formitem"><input name="user-email" type="email" value="{{.Something.Email}}" placeholder="example@localhost" /></div>
|
|
</div>{{end}}
|
|
{{if .CurrentUser.Perms.EditUserGroup}}
|
|
<div class="formrow">
|
|
<div class="formitem"><a>Group</a></div>
|
|
<div class="formitem">
|
|
<select name="user-group">
|
|
{{range .ItemList}}<option {{if eq .ID $.Something.Group}}selected {{end}}value="{{.ID}}">{{.Name}}</option>{{end}}
|
|
</select>
|
|
</div>
|
|
</div>{{end}}
|
|
<div class="formrow">
|
|
<div class="formitem"><button name="panel-button" class="formbutton">Update User</div></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{{template "footer.html" . }} |