bbbd0c381f
The porting is still underway, part of it relies on functionality which hasn't be implemented in Gosora yet like sidebars and alerts. Restructured the BBCode parser plugin. Added the [code] tag to the BBCode parser. Disabled by default for now. Added a benchmark for comparing performance between when [code] is enabled and when it isn't. Tweaked the templates to make them more flexible, thus allowing a wider variety of themes. Images of the themes can now be found in the Theme Manager. There's an emoji on each theme row to show which themes are mobile friendly and which aren't. Fixed editing and deleting posts on Tempra Conflux. Moved a large portion of the inline CSS in the topic_alt template into the stylesheets.
34 lines
1.4 KiB
HTML
34 lines
1.4 KiB
HTML
{{template "header.html" . }}
|
|
{{template "panel-menu.html" . }}
|
|
<div class="colblock_right">
|
|
<div class="rowitem rowhead"><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" . }} |