summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2017-04-21 11:31:32 +0200
committerJan Dittberner <jan@dittberner.info>2017-04-22 00:14:11 +0200
commit8d1f18e16dcf44001155e8dff273f82900899d76 (patch)
tree6a7ed46e5ffb339cc316f9d862f6584d2aa82776 /templates
parent2cac50ee86e70428aa06c99f5e009ceaaf1dbc13 (diff)
downloadcacert-boardvoting-8d1f18e16dcf44001155e8dff273f82900899d76.tar.gz
cacert-boardvoting-8d1f18e16dcf44001155e8dff273f82900899d76.tar.xz
cacert-boardvoting-8d1f18e16dcf44001155e8dff273f82900899d76.zip
Implement direct voting
Diffstat (limited to 'templates')
-rw-r--r--templates/direct_vote_form.html22
-rw-r--r--templates/direct_vote_mail.txt10
2 files changed, 32 insertions, 0 deletions
diff --git a/templates/direct_vote_form.html b/templates/direct_vote_form.html
new file mode 100644
index 0000000..3b656f2
--- /dev/null
+++ b/templates/direct_vote_form.html
@@ -0,0 +1,22 @@
+{{ template "header" . }}
+<a href="/motions/">Show all votes</a>
+<table class="list">
+ <thead>
+ <tr>
+ <th>Status</th>
+ <th>Motion</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ {{ with .Decision }}
+ {{ template "motion_fragment" .}}
+ {{ end}}
+ </tr>
+ </tbody>
+</table>
+
+<form action="/vote/{{ .Decision.Tag }}/{{ .VoteChoice }}" method="post">
+ <input type="submit" value="Vote {{ .VoteChoice }}"/>
+</form>
+{{ template "footer" . }} \ No newline at end of file
diff --git a/templates/direct_vote_mail.txt b/templates/direct_vote_mail.txt
new file mode 100644
index 0000000..95bacb8
--- /dev/null
+++ b/templates/direct_vote_mail.txt
@@ -0,0 +1,10 @@
+Dear Board,
+
+{{ .Voter }} has just voted {{ .Vote }} on motion {{ .Decision.Tag }}.
+
+Motion:
+ {{ .Decision.Title }}
+ {{ .Decision.Content }}
+
+Kind regards,
+the vote system \ No newline at end of file