summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2017-04-19 21:35:08 +0200
committerJan Dittberner <jan@dittberner.info>2017-04-22 00:12:38 +0200
commit0ce9ad6dcc01375cb3f2d57f7bbdf701e605bea1 (patch)
tree8de15dd825d80e025764614f6324343771b8231a /templates
parentbc194e8943bdec58ef462e393ef2a8a59d928718 (diff)
downloadcacert-boardvoting-0ce9ad6dcc01375cb3f2d57f7bbdf701e605bea1.tar.gz
cacert-boardvoting-0ce9ad6dcc01375cb3f2d57f7bbdf701e605bea1.tar.xz
cacert-boardvoting-0ce9ad6dcc01375cb3f2d57f7bbdf701e605bea1.zip
Implement withdraw motion
Diffstat (limited to 'templates')
-rw-r--r--templates/withdraw_motion_form.html22
-rw-r--r--templates/withdraw_motion_mail.txt (renamed from templates/withdraw_mail.txt)4
2 files changed, 22 insertions, 4 deletions
diff --git a/templates/withdraw_motion_form.html b/templates/withdraw_motion_form.html
new file mode 100644
index 0000000..809ce28
--- /dev/null
+++ b/templates/withdraw_motion_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="/motions/{{ .Decision.Tag }}/withdraw" method="post">
+ <input type="submit" value="Withdraw" />
+</form>
+{{ template "footer" . }}
diff --git a/templates/withdraw_mail.txt b/templates/withdraw_motion_mail.txt
index 4ccf4de..fb3ed87 100644
--- a/templates/withdraw_mail.txt
+++ b/templates/withdraw_motion_mail.txt
@@ -1,7 +1,3 @@
-From: {{ .Sender }}
-To: {{ .Recipient }}
-Subject: Re: {{ .Tag }} - {{ .Title }} - withdrawn
-
Dear Board,
{{ .Name }} has withdrawn the motion {{ .Tag }} that was as follows: