9b1489b90f
Each theme has more of a distinct feel in the control panel now. I moved a large portion of the inline CSS into global.css, tweaked some core code which didn't line up, and added CSS text insertions to make things more flexible. Revamped the alerts interface. We have more changes coming up! Added screenshots for Tempra Cursive and Tempra Conflux Mobile to the README. Added a .htaccess file, just in case someone plops Gosora in Apache's /www/ folder to stop the contents of config.go from becoming publically visible. Never put Gosora in your /www/ folder, Gosora is a standalone program which does NOT use Apache or any other webserver. Fixed a bug in the inline forum editor. Added a hand-written Markdown parser which is much faster than the previous Regex based one. This is still a work in progress. Added support for strikethrough and underline elements to the Markdown parser. Fixed the missing semicolons in global.js Revamped the form CSS. Author bits on the theme manager now link to the author's website. Improved the profiles a little. The code in the stylesheets now have a more consistent style. Fixed a bug in the Cosmo theme relating to the fact that Gosora doesn't have sidebars yet. There are many more changes which aren't listed here. If weirdness regarding lines or spacing occurs, I'm experimenting with a new text editor. I hope to have this fixed by the next commit.
37 lines
1.5 KiB
HTML
37 lines
1.5 KiB
HTML
{{template "header.html" . }}
|
|
{{template "panel-menu.html" . }}
|
|
<div class="colstack_right">
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem rowhead"><a>User Editor</a></div>
|
|
</div>
|
|
<div id="panel_user" class="colstack_item">
|
|
<form action="/panel/users/edit/submit/{{.Something.ID}}?session={{.CurrentUser.Session}}" method="post">
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><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 formlabel"><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 formlabel"><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 formlabel"><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</button></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{{template "footer.html" . }}
|