Files
handbrake-cluster-webui/webui/source/templates/admin/settings.tpl
Ben Roberts cab3a51323 Add initial support for adding settings.
Adds "Add Setting" button to table, and shows a popup with form
elements for adding a new setting. Does not yet add setting to the db.
2011-08-27 20:25:48 +01:00

33 lines
909 B
Smarty

<h2>Settings</h2>
<table id="settings">
<thead>
<th>Name</th>
<th>Value</th>
</thead>
<tbody>
{foreach from=$settings item=name}
{assign var='value' value=$config->get($name)}
{assign var='type' value=$config->type($name)}
{assign var='id' value=str_replace('.', '-',$name)}
<tr>
<td>{$name}</td>
<td>
{include file="fragments/admin-setting-value.tpl"}
</td>
</tr>
{/foreach}
</tbody>
<tfoot>
<tr>
<td colspan="2">
<input type="button" id="settings_save" name="save" value="Save" />
<input type="button" id="settings_add" name="add" value="Add Setting" />
</td>
</tr>
</tfoot>
</table>
<script type="text/javascript">
rc.settings.init();
</script>