summaryrefslogtreecommitdiff
path: root/tpls
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-08-30 23:46:47 +0200
committerKevin Chabowski <kevin@kch42.de>2013-08-30 23:46:47 +0200
commit945af900ee539fc270e82e906c6d961c51e4913d (patch)
tree10ae1fd5c43731790f5d8b1de43c3719b814b846 /tpls
parenta007e53b037a08ce34efd0b936dfa03127c2b7d1 (diff)
downloadmailremind-945af900ee539fc270e82e906c6d961c51e4913d.tar.gz
mailremind-945af900ee539fc270e82e906c6d961c51e4913d.tar.bz2
mailremind-945af900ee539fc270e82e906c6d961c51e4913d.zip
Added Joblist
Diffstat (limited to 'tpls')
-rw-r--r--tpls/jobs.tpl43
1 files changed, 43 insertions, 0 deletions
diff --git a/tpls/jobs.tpl b/tpls/jobs.tpl
new file mode 100644
index 0000000..578791e
--- /dev/null
+++ b/tpls/jobs.tpl
@@ -0,0 +1,43 @@
+{{define "title"}}Jobs{{end}}
+
+{{define "content"}}
+ {{if .Error}}
+ <div class="error">{{.Error}}</div>
+ {{end}}
+
+ {{if not .Fatal}}
+ {{if .Success}}
+ <div class="success">{{.Success}}</div>
+ {{end}}
+
+ <form action="/jobs" method="post">
+ <table class="fullwidth">
+ <thead>
+ <tr>
+ <th>&nbsp;</th>
+ <th>Subject</th>
+ <th>Excerpt</th>
+ <th>Next</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{range .Jobs}}<tr>
+ <td><input type="checkbox" name="Jobs" value="{{.ID}}" /></td>
+ <td><a href="/edit/{{.ID}}">{{.Subject}}</a></td>
+ <td>{{.Excerpt}}</td>
+ <td>{{.Next}}</td>
+ </tr>{{end}}
+ </tbody>
+ </table>
+ <hr />
+ <p>
+ Delete selected:
+ <select name="Delconfirm" size="0">
+ <option value="no" selected="selected">No</option>
+ <option value="yes">Yes</option>
+ </select>
+ <input type="submit" />
+ </p>
+ </form>
+ {{end}}
+{{end}} \ No newline at end of file