2016-12-09 13:46:29 +00:00
|
|
|
{{template "header.html" . }}
|
2016-12-24 13:14:40 +00:00
|
|
|
{{template "panel-menu.html" . }}
|
2016-12-09 13:46:29 +00:00
|
|
|
<div class="colblock_right">
|
|
|
|
<div class="rowitem"><a>Edit Setting</a></div>
|
|
|
|
</div>
|
|
|
|
<div class="colblock_right">
|
|
|
|
<form action="/panel/settings/edit/submit/{{.Something.Name}}?session={{.CurrentUser.Session}}" method="post">
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><a>Setting Name</a></div>
|
|
|
|
<div class="formitem">{{.Something.Name}}</div>
|
|
|
|
</div>
|
2016-12-21 02:30:32 +00:00
|
|
|
{{if eq .Something.Type "list"}}
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><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"}}
|
2016-12-09 13:46:29 +00:00
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><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"><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</div></div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{template "footer.html" . }}
|