ac9623ab6b
Added ItemList microdata to /forum/, /forums/, and /topics. Moved the meta description for /forums/ to the right place. Began revamping the Control Panel menu.
42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
{{template "header.html" . }}
|
|
<div class="colstack panel_stack">
|
|
|
|
{{template "panel-menu.html" . }}
|
|
<main class="colstack_right">
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>Edit Setting</h1></div>
|
|
</div>
|
|
<div id="panel_setting" class="colstack_item">
|
|
<form action="/panel/settings/edit/submit/{{.Something.Name}}?session={{.CurrentUser.Session}}" method="post">
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>Setting Name</a></div>
|
|
<div class="formitem formlabel">{{.Something.Name}}</div>
|
|
</div>
|
|
{{if eq .Something.Type "list"}}
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>Setting Value</a></div>
|
|
<div class="formitem">
|
|
<select name="setting-value">
|
|
{{range .ItemList}}<option{{if .Selected}} selected{{end}} value="{{.Value}}">{{.Label}}</option>{{end}}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
{{else if eq .Something.Type "bool"}}
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>Setting Value</a></div>
|
|
<div class="formitem"><input name="setting-value" type="checkbox"{{if eq .Something.Content "1"}} checked{{end}} /></div>
|
|
</div>
|
|
{{else}}<div class="formrow">
|
|
<div class="formitem formlabel"><a>Setting Value</a></div>
|
|
<div class="formitem"><input name="setting-value" type="text" value="{{.Something.Content}}" /></div>
|
|
</div>{{end}}
|
|
<div class="formrow">
|
|
<div class="formitem"><button name="panel-button" class="formbutton">Update Setting</button></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</main>
|
|
|
|
</div>
|
|
{{template "footer.html" . }}
|