a8e1076f7c
Added an ETag for the alerts endpoint when you're not logged to save bandwidth. The Page Manager now uses dyntmpl. The Setting Manager now uses dyntmpl. The Word Filter Manager now uses dyntmpl. Fixed the padding on the noavatar alerts for Nox. Tweaked the panel_word_filters_to phrase. Tweaked the panel_statistics_memory_head phrase. Added the panel_statistics_memory_chart_aria phrase. Added the panel_statistics_memory_table_aria phrase. Added the panel_statistics_memory_no_memory phrase.
37 lines
1.6 KiB
HTML
37 lines
1.6 KiB
HTML
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>{{.Setting.FriendlyName}}</h1></div>
|
|
</div>
|
|
<div id="panel_setting" class="colstack_item the_form">
|
|
<form action="/panel/settings/edit/submit/{{.Setting.Name}}?session={{.CurrentUser.Session}}" method="post">
|
|
{{if eq .Setting.Type "list"}}
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>{{lang "panel_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 .Setting.Type "bool"}}
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>{{lang "panel_setting_value"}}</a></div>
|
|
<div class="formitem">
|
|
<select name="setting-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>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
{{else if eq .Setting.Type "textarea"}}
|
|
<div class="formrow">
|
|
<div class="formitem"><textarea name="setting-value">{{.Setting.Content}}</textarea></div>
|
|
</div>
|
|
{{else}}<div class="formrow">
|
|
<div class="formitem formlabel"><a>{{lang "panel_setting_value"}}</a></div>
|
|
<div class="formitem"><input name="setting-value" type="text" value="{{.Setting.Content}}" /></div>
|
|
</div>{{end}}
|
|
<div class="formrow form_button_row">
|
|
<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_setting_update_button"}}</button></div>
|
|
</div>
|
|
</form>
|
|
</div> |