Commit 040c3690 authored by Jason Frisvold's avatar Jason Frisvold
Browse files

- Add missing description field

- Update templates to set default if result.disabled doesn't exist
parent eadd2ec9
......@@ -71,7 +71,7 @@
// Pull all data from the timers table
$result = $app->db->table('timers')
->select('id', 'cloud_id', 'spawn_id', 'target_id', 'hour', 'minute',
'day', 'month', 'disabled', 'last_modified')
'day', 'month', 'description', 'disabled', 'last_modified')
->get();
$smarty_data['results'] = $result;
......
......@@ -56,9 +56,10 @@
</div>
</div>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Disabled</span>
<input type='text' name='ssh_key' value='{$result.disabled|default:""}' />
<div class='checkbox'>
<label>
<input type='checkbox' name='disabled' value='disabled' {if $result.disabled|default:""}checked{/if} /> Disabled
</label>
</div>
</div>
</div>
......
......@@ -84,9 +84,10 @@
</div>
</div>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Disabled</span>
<input type='text' name='ssh_key' value='{$result.disabled|default:""}' />
<div class='checkbox'>
<label>
<input type='checkbox' name='disabled' value='disabled' {if $result.disabled|default:""}checked{/if} /> Disabled
</label>
</div>
</div>
</div>
......
......@@ -94,7 +94,7 @@
<div class="col-md-4">
<div class='checkbox'>
<label>
<input type='checkbox' name='disabled' value='disabled' {if $result.disabled}checked{/if} /> Disabled
<input type='checkbox' name='disabled' value='disabled' {if $result.disabled|default:""}checked{/if} /> Disabled
</label>
</div>
</div>
......
......@@ -56,9 +56,10 @@
</div>
</div>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Disabled</span>
<input type='text' name='ssh_key' value='{$result.disabled|default:""}' />
<div class='checkbox'>
<label>
<input type='checkbox' name='disabled' value='disabled' {if $result.disabled|default:""}checked{/if} /> Disabled
</label>
</div>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment