github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/panel_setting.html (about)

     1  <div class="colstack_item colstack_head">
     2  	<div class="rowitem"><h1>{{.Setting.FriendlyName}}</h1></div>
     3  </div>
     4  <div id="panel_setting"class="colstack_item the_form">
     5  	<form action="/panel/settings/edit/submit/{{.Setting.Name}}?s={{.CurrentUser.Session}}"method="post">
     6  		{{if eq .Setting.Type "list"}}
     7  		<div class="formrow">
     8  			<div class="formitem formlabel"><a>{{lang "panel_setting_value"}}</a></div>
     9  			<div class="formitem">
    10  				<select name="value">
    11  				{{range .ItemList}}<option{{if .Selected}} selected{{end}} value="{{.Value}}">{{.Label}}</option>{{end}}
    12  				</select>
    13  			</div>
    14  		</div>
    15  		{{else if eq .Setting.Type "bool"}}
    16  		<div class="formrow">
    17  			<div class="formitem formlabel"><a>{{lang "panel_setting_value"}}</a></div>
    18  			<div class="formitem">
    19  				<select name="value">
    20  					<option{{if eq .Setting.Content "1"}} selected{{end}} value=1>{{lang "option_yes"}}</option>
    21  					<option{{if eq .Setting.Content "0"}} selected{{end}} value=0>{{lang "option_no"}}</option>
    22  				</select>
    23  			</div>
    24  		</div>
    25  		{{else if eq .Setting.Type "textarea"}}
    26  		<div class="formrow">
    27  			<div class="formitem"><textarea name="value">{{.Setting.Content}}</textarea></div>
    28  		</div>
    29  		{{else}}<div class="formrow">
    30  			<div class="formitem formlabel"><a>{{lang "panel_setting_value"}}</a></div>
    31  			<div class="formitem"><input name="value"type="text"value="{{.Setting.Content}}"></div>
    32  		</div>{{end}}
    33  		<div class="formrow form_button_row">
    34  			<div class="formitem"><button name="panel-button"class="formbutton">{{lang "panel_setting_update_button"}}</button></div>
    35  		</div>
    36  	</form>
    37  </div>