summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorHorus32015-02-24 16:33:24 +0100
committerHorus32015-02-24 16:33:24 +0100
commit8763022c77f0ad8edf6578962a524715d99e8d39 (patch)
treec5b2557c56ebad2929cd02951b719aeff68b73ba /views
parent70d080b69a1bce3125d8d0b83e23775880241763 (diff)
downloadstatuspage-8763022c77f0ad8edf6578962a524715d99e8d39.tar.gz
Session storage. Add new jobs over Webpage. Improved makefile.
Diffstat (limited to 'views')
-rw-r--r--views/jobs.html53
-rw-r--r--views/jobs_error.html52
2 files changed, 100 insertions, 5 deletions
diff --git a/views/jobs.html b/views/jobs.html
index 9fdcbf7..df54994 100644
--- a/views/jobs.html
+++ b/views/jobs.html
@@ -1,9 +1,52 @@
{{template "header.html"}}
{{template "navbar.html"}}
-<form method='post' action='/new'>
- <input type='text' name='Url' placeholder='domain'>
- <!--input type='text' name='name' placeholder='name'>
- <input type='hidden' name='private' value='0'-->
- <input type='submit'>
+<div class="container">
+ <div class="row">
+{{range .}}
+<h4 class="col-md-4 col-md-offset-4 alert alert-success alert-dismissible" role="alert">
+ <button type="button" class="close" data-dismiss="alert" aria-label="close"><span aria-hidden="true">&times;</span></button>
+ {{.}}
+</h4>
+{{end}}
+ <div class="text-center">
+ </div>
+ </div>
+</div>
+<div class="container">
+ <div class="row">
+<form class="form-horizontal" method='post' action='/new'>
+ <fieldset>
+
+ <!-- Form Name -->
+ <div class="text-center">
+ <legend>Add new job!</legend>
+ </div>
+
+ <!-- Text input-->
+ <div class="form-group">
+ <label class="col-md-4 control-label" for="Url">Job Url:</label>
+ <div class="col-md-4">
+ <div class="input-group">
+ <input id="Url" name="Url" placeholder="Url to monitor." class="form-control input-md" required="" type="text">
+ <span class="input-group-addon">
+ <input name="Private" type="checkbox">
+ </span>
+ </div>
+ <span class="help-block">Check to mark this host as private.</span>
+ </div>
+ </div>
+
+ <!-- Button -->
+ <div class="form-group">
+ <label class="col-md-4 control-label" for="submit"></label>
+ <div class="col-md-4">
+ <button class="btn btn-primary">Submit</button>
+ </div>
+ </div>
+
+ </fieldset>
</form>
+
+ </div>
+</div>
{{template "footer.html"}}
diff --git a/views/jobs_error.html b/views/jobs_error.html
new file mode 100644
index 0000000..c13cbd8
--- /dev/null
+++ b/views/jobs_error.html
@@ -0,0 +1,52 @@
+{{template "header.html"}}
+{{template "navbar.html"}}
+<div class="container">
+ <div class="row">
+{{range .}}
+<h4 class="col-md-4 col-md-offset-4 alert alert-danger alert-dismissible" role="alert">
+ <button type="button" class="close" data-dismiss="alert" aria-label="close"><span aria-hidden="true">&times;</span></button>
+ {{.}}
+</h4>
+{{end}}
+ <div class="text-center">
+ </div>
+ </div>
+</div>
+<div class="container">
+ <div class="row">
+<form class="form-horizontal" method='post' action='/new'>
+ <fieldset>
+
+ <!-- Form Name -->
+ <div class="text-center">
+ <legend>Add new job!</legend>
+ </div>
+
+ <!-- Text input-->
+ <div class="form-group">
+ <label class="col-md-4 control-label" for="Url">Job Url:</label>
+ <div class="col-md-4">
+ <div class="input-group">
+ <input id="Url" name="Url" placeholder="Url to monitor." class="form-control input-md" required="" type="text">
+ <span class="input-group-addon">
+ <input name="Private" type="checkbox">
+ </span>
+ </div>
+ <span class="help-block">Check to mark this host as private.</span>
+ </div>
+ </div>
+
+ <!-- Button -->
+ <div class="form-group">
+ <label class="col-md-4 control-label" for="submit"></label>
+ <div class="col-md-4">
+ <button class="btn btn-primary">Submit</button>
+ </div>
+ </div>
+
+ </fieldset>
+</form>
+
+ </div>
+</div>
+{{template "footer.html"}}