2016-12-09 13:46:29 +00:00
|
|
|
{{template "header.html" . }}
|
2017-12-27 23:38:37 +00:00
|
|
|
<div class="colstack panel_stack">
|
2017-11-23 05:37:08 +00:00
|
|
|
|
2016-12-24 13:14:40 +00:00
|
|
|
{{template "panel-menu.html" . }}
|
2017-08-20 09:39:02 +00:00
|
|
|
<main class="colstack_right">
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
2018-05-27 09:36:35 +00:00
|
|
|
<div class="rowitem"><h1>{{.Setting.FriendlyName}}</h1></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
<div id="panel_setting" class="colstack_item">
|
2018-05-27 09:36:35 +00:00
|
|
|
<form action="/panel/settings/edit/submit/{{.Setting.Name}}?session={{.CurrentUser.Session}}" method="post">
|
|
|
|
{{if eq .Setting.Type "list"}}
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_setting_value"}}</a></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formitem">
|
|
|
|
<select name="setting-value">
|
|
|
|
{{range .ItemList}}<option{{if .Selected}} selected{{end}} value="{{.Value}}">{{.Label}}</option>{{end}}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-05-27 09:36:35 +00:00
|
|
|
{{else if eq .Setting.Type "bool"}}
|
2017-03-18 07:23:02 +00:00
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_setting_value"}}</a></div>
|
2018-05-11 05:41:51 +00:00
|
|
|
<div class="formitem">
|
|
|
|
<select name="setting-value">
|
2018-05-27 09:36:35 +00:00
|
|
|
<option{{if eq .Setting.Content "1"}} selected{{end}} value="1">{{lang "option_yes"}}</option>
|
|
|
|
<option{{if eq .Setting.Content "0"}} selected{{end}} value="0">{{lang "option_no"}}</option>
|
2018-05-11 05:41:51 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
2018-05-27 09:36:35 +00:00
|
|
|
{{else if eq .Setting.Type "textarea"}}
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><textarea name="setting-value">{{.Setting.Content}}</textarea></div>
|
|
|
|
</div>
|
2017-03-18 07:23:02 +00:00
|
|
|
{{else}}<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_setting_value"}}</a></div>
|
2018-05-27 09:36:35 +00:00
|
|
|
<div class="formitem"><input name="setting-value" type="text" value="{{.Setting.Content}}" /></div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>{{end}}
|
|
|
|
<div class="formrow">
|
2018-03-11 09:33:49 +00:00
|
|
|
<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_setting_update_button"}}</button></div>
|
2016-12-21 02:30:32 +00:00
|
|
|
</div>
|
2017-03-18 07:23:02 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2017-08-20 09:39:02 +00:00
|
|
|
</main>
|
2017-11-23 05:37:08 +00:00
|
|
|
|
|
|
|
</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
{{template "footer.html" . }}
|