2018-03-29 19:26:12 +00:00
|
|
|
{{ template "header.html" . }}
|
2019-08-02 23:39:55 +00:00
|
|
|
{{ template "return_header" . }}
|
2017-04-30 00:37:29 +00:00
|
|
|
{{ with .Decision }}
|
|
|
|
<div class="ui raised segment">
|
2019-08-02 23:39:55 +00:00
|
|
|
{{ template "motion_fragment" . }}
|
2017-04-30 00:37:29 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2017-04-21 09:31:32 +00:00
|
|
|
<form action="/vote/{{ .Decision.Tag }}/{{ .VoteChoice }}" method="post">
|
2019-08-02 23:39:55 +00:00
|
|
|
{{ csrfField }}
|
2017-04-30 00:37:29 +00:00
|
|
|
<div class="ui form">
|
2019-08-02 23:39:55 +00:00
|
|
|
{{ if eq 1 .VoteChoice }}
|
|
|
|
<button class="ui right labeled green icon button" type="submit"><i class="check circle icon"></i>
|
|
|
|
Vote {{ .VoteChoice }}</button>
|
|
|
|
{{ else if eq -1 .VoteChoice }}
|
|
|
|
<button class="ui right labeled red icon button" type="submit"><i class="minus circle icon"></i>
|
|
|
|
Vote {{ .VoteChoice }}</button>
|
|
|
|
{{ else }}
|
|
|
|
<button class="ui right labeled grey icon button" type="submit"><i class="circle icon"></i>
|
|
|
|
Vote {{ .VoteChoice }}</button>
|
|
|
|
{{ end }}
|
2017-04-30 00:37:29 +00:00
|
|
|
</div>
|
2017-04-21 09:31:32 +00:00
|
|
|
</form>
|
2018-03-29 19:26:12 +00:00
|
|
|
{{ template "footer.html" . }}
|