2019-08-31 22:59:00 +00:00
|
|
|
<div class="colstack_item colstack_head">
|
|
|
|
<div class="rowitem"><h1>{{.Setting.FriendlyName}}</h1></div>
|
|
|
|
</div>
|
2020-06-08 07:04:47 +00:00
|
|
|
<div id="panel_setting"class="colstack_item the_form">
|
|
|
|
<form action="/panel/settings/edit/submit/{{.Setting.Name}}?s={{.CurrentUser.Session}}"method="post">
|
2019-08-31 22:59:00 +00:00
|
|
|
{{if eq .Setting.Type "list"}}
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_setting_value"}}</a></div>
|
|
|
|
<div class="formitem">
|
2019-10-27 23:13:24 +00:00
|
|
|
<select name="value">
|
2019-08-31 22:59:00 +00:00
|
|
|
{{range .ItemList}}<option{{if .Selected}} selected{{end}} value="{{.Value}}">{{.Label}}</option>{{end}}
|
|
|
|
</select>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
2019-08-31 22:59:00 +00:00
|
|
|
</div>
|
|
|
|
{{else if eq .Setting.Type "bool"}}
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_setting_value"}}</a></div>
|
|
|
|
<div class="formitem">
|
2019-10-27 23:13:24 +00:00
|
|
|
<select name="value">
|
|
|
|
<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>
|
2019-08-31 22:59:00 +00:00
|
|
|
</select>
|
2017-03-18 07:23:02 +00:00
|
|
|
</div>
|
2019-08-31 22:59:00 +00:00
|
|
|
</div>
|
|
|
|
{{else if eq .Setting.Type "textarea"}}
|
|
|
|
<div class="formrow">
|
2019-10-27 23:13:24 +00:00
|
|
|
<div class="formitem"><textarea name="value">{{.Setting.Content}}</textarea></div>
|
2019-08-31 22:59:00 +00:00
|
|
|
</div>
|
|
|
|
{{else}}<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "panel_setting_value"}}</a></div>
|
2020-03-31 12:33:40 +00:00
|
|
|
<div class="formitem"><input name="value"type="text"value="{{.Setting.Content}}"></div>
|
2019-08-31 22:59:00 +00:00
|
|
|
</div>{{end}}
|
|
|
|
<div class="formrow form_button_row">
|
2020-06-08 07:04:47 +00:00
|
|
|
<div class="formitem"><button name="panel-button"class="formbutton">{{lang "panel_setting_update_button"}}</button></div>
|
2019-08-31 22:59:00 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|