d0318191c9
Refactored the menu system. Updated the README and revamped it a tad to make it easier to understand. Also, added manual instructions for patching. Revamped the update scripts, especially on Windows. Merged the CSS and Tmpl phrase namespaces. Added lastSchema to .gitignore Added DropTable to the database adapters. Implemented DbVersion in the PgSQL Adapter. Swapped out the checkboxes for cleaner looking yes-no dropdowns. Began revamping small bits of the user logic. We now open to contributions, just open a pull request and sign the CLA. Schema has been updated, run the patcher or update script.
47 lines
1.8 KiB
HTML
47 lines
1.8 KiB
HTML
{{template "header.html" . }}
|
|
<div class="colstack panel_stack">
|
|
|
|
{{template "panel-menu.html" . }}
|
|
<main class="colstack_right">
|
|
<div class="colstack_item colstack_head">
|
|
<div class="rowitem"><h1>{{lang "panel_setting_head"}}</h1></div>
|
|
</div>
|
|
<div id="panel_setting" class="colstack_item">
|
|
<form action="/panel/settings/edit/submit/{{.Something.Name}}?session={{.CurrentUser.Session}}" method="post">
|
|
<div class="formrow">
|
|
<div class="formitem formlabel"><a>{{lang "panel_setting_name"}}</a></div>
|
|
<div class="formitem formlabel">{{.Something.Name}}</div>
|
|
</div>
|
|
{{if eq .Something.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 .Something.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 .Something.Content "1"}} selected{{end}} value="1">{{lang "option_yes"}}</option>
|
|
<option{{if eq .Something.Content "0"}} selected{{end}} value="0">{{lang "option_no"}}</option>
|
|
</select>
|
|
</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="{{.Something.Content}}" /></div>
|
|
</div>{{end}}
|
|
<div class="formrow">
|
|
<div class="formitem"><button name="panel-button" class="formbutton">{{lang "panel_setting_update_button"}}</button></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</main>
|
|
|
|
</div>
|
|
{{template "footer.html" . }}
|