editing gives url and name

This commit is contained in:
Jeroen De Meerleer 2017-05-10 11:35:45 +02:00
parent 282c30fc23
commit b3b2a5841b
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
elseif ($_SERVER["REQUEST_METHOD"] == "POST") {
if (empty($_POST['name']) || empty($_POST['url'] || empty($_POST['delay']))) {
header("location:addjob.php?error=emptyfields");
header("location:editjob.php?error=emptyfields");
exit;
}

View File

@ -18,11 +18,11 @@
<div class="form-group">
<label for="name">Name</label>
<input type="text" name="name" class="form-control" id="name" placeholder="System update">
<input type="text" name="name" class="form-control" id="name" placeholder="System update" value="{{ name }}">
</div>
<div class="form-group">
<label for="url">url</label>
<input type="text" name="url" class="form-control" id="url" placeholder="http://example.com/ or 'sudo yum update -y'">
<input type="text" name="url" class="form-control" id="url" placeholder="http://example.com/ or 'sudo yum update -y'" value="{{ url }}">
</div>
<div class="form-group">