Commit 8fb02b6c authored by Jason Frisvold's avatar Jason Frisvold
Browse files

- Update form actions and methods

- Fix variable names for input tags
parent 42c108a4
......@@ -33,18 +33,18 @@
<div class='page-header'>
<h1>Scan Type Editor</h1>
</div>
<form>
<form action='/edit-scantype' method='post'>
<div class='row'>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Options</span>
<input type='text' name='server_ip' value='{$result.options|default:""}' />
<input type='text' name='options' value='{$result.options|default:""}' />
</div>
</div>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Override</span>
<input type='text' name='ssh_key' value='{$result.override|default:""}' />
<input type='text' name='override' value='{$result.override|default:""}' />
</div>
</div>
</div>
......@@ -65,9 +65,9 @@
</div>
<div class='input-group'>
<input type='button' name='save' value='Submit' />
<input type='submit' name='save' value='Submit' />
</div>
<input type='hidden' name='cloud_id' value='{$result.id|default:""}' />
<input type='hidden' name='id' value='{$result.id|default:""}' />
</form>
</div>
......
......@@ -33,18 +33,18 @@
<div class='page-header'>
<h1>Schedule Editor</h1>
</div>
<form>
<form action='/edit-schedule' method='post'>
<div class='row'>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Cloud ID</span>
<input type='text' name='server_ip' value='{$result.cloud_id|default:""}' />
<input type='text' name='cloud_id' value='{$result.cloud_id|default:""}' />
</div>
</div>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Spawn ID</span>
<input type='text' name='server_ip' value='{$result.spawn_id|default:""}' />
<input type='text' name='spawn_id' value='{$result.spawn_id|default:""}' />
</div>
</div>
</div>
......@@ -52,13 +52,13 @@
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Target ID</span>
<input type='text' name='server_ip' value='{$result.target_id|default:""}' />
<input type='text' name='target_id' value='{$result.target_id|default:""}' />
</div>
</div>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Hour</span>
<input type='text' name='gpg_key' value='{$result.hour|default:""}' />
<input type='text' name='hour' value='{$result.hour|default:""}' />
</div>
</div>
</div>
......@@ -66,13 +66,13 @@
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Minute</span>
<input type='text' name='gpg_key' value='{$result.minute|default:""}' />
<input type='text' name='minute' value='{$result.minute|default:""}' />
</div>
</div>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Day</span>
<input type='text' name='gpg_key' value='{$result.day|default:""}' />
<input type='text' name='day' value='{$result.day|default:""}' />
</div>
</div>
</div>
......@@ -80,7 +80,7 @@
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Month</span>
<input type='text' name='gpg_key' value='{$result.month|default:""}' />
<input type='text' name='month' value='{$result.month|default:""}' />
</div>
</div>
<div class="col-md-4">
......@@ -101,9 +101,9 @@
</div>
<div class='input-group'>
<input type='button' name='save' value='Submit' />
<input type='submit' name='save' value='Submit' />
</div>
<input type='hidden' name='cloud_id' value='{$result.id|default:""}' />
<input type='hidden' name='id' value='{$result.id|default:""}' />
</form>
</div>
......
......@@ -33,7 +33,7 @@
<div class='page-header'>
<h1>Server Editor</h1>
</div>
<form>
<form action='/edit-server' method='post'>
<div class='row'>
<div class="col-md-4">
<div class='input-group'>
......@@ -101,9 +101,9 @@
</div>
<div class='input-group'>
<input type='button' name='save' value='Submit' />
<input type='submit' name='save' value='Submit' />
</div>
<input type='hidden' name='cloud_id' value='{$result.id|default:""}' />
<input type='hidden' name='id' value='{$result.id|default:""}' />
</form>
</div>
......
......@@ -33,18 +33,18 @@
<div class='page-header'>
<h1>Target Editor</h1>
</div>
<form>
<form action='/edit-target' method='post'>
<div class='row'>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">Address</span>
<input type='text' name='server_ip' value='{long2ip($result.address)|default:""}' />
<input type='text' name='address' value='{long2ip($result.address)|default:""}' />
</div>
</div>
<div class="col-md-4">
<div class='input-group'>
<span class="input-group-addon">CIDR</span>
<input type='text' name='ssh_key' value='{$result.cidr|default:""}' />
<input type='text' name='cidr' value='{$result.cidr|default:""}' />
</div>
</div>
</div>
......@@ -65,9 +65,9 @@
</div>
<div class='input-group'>
<input type='button' name='save' value='Submit' />
<input type='submit' name='save' value='Submit' />
</div>
<input type='hidden' name='cloud_id' value='{$result.id|default:""}' />
<input type='hidden' name='id' value='{$result.id|default:""}' />
</form>
</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