Commit 6c479806 authored by Jason Frisvold's avatar Jason Frisvold
Browse files

- Fix frequency label, should be minutes, not seconds

- Remove key type field
- Adjust code to remove key_type
- Disabled should be a checkbox, reflected in form
parent 7e48d76e
......@@ -30,8 +30,7 @@
$result = $app->db->table('cloud')
->select('id', 'server_ip', 'description', 'ssh_key', 'gpg_key',
'contact_frequency', 'config_dir', 'output_dir',
'ssh_username', 'key_type', 'last_contacted', 'disabled',
'last_modified')
'ssh_username', 'last_contacted', 'disabled', 'last_modified')
->where('id', $id)
->first();
......
......@@ -79,29 +79,23 @@
<div class='row'>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Key Type</span>
{$key_options = ['RSA' => 'RSA', 'DSA' => 'DSA']}
{html_options name=key_type options=$key_options selected=$result.key_type|default:""}
</div>
</div>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Contact Frequency</span>
<span class="input-group-addon">Contact Frequency<br>(In Minutes)</span>
<input type='text' name='contact_frequency' value='{$result.contact_frequency|default:""}' />
</div>
</div>
</div>
<div class='row'>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Description</span>
<textarea name='description'>{$result.description|default:""}</textarea>
</div>
</div>
</div>
<div class='row'>
<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}checked{/if} /> Disabled
</label>
</div>
</div>
</div>
......
......@@ -39,7 +39,7 @@
<tr>
<th>IP Address</th>
<th>Description</th>
<th>Frequency<br>(in seconds)</th>
<th>Frequency<br>(in minutes)</th>
<th>Last Contacted</th>
<th>State</th>
<th>Last Modified</th>
......
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