Use Semantic UI for all HTML templates
[cacert-boardvoting.git] / templates / direct_vote_form.html
1 {{ template "header" . }}
2 <div class="column">
3 <div class="ui basic segment">
4 <div class="ui floated right secondary menu">
5 <a href="/motions/" class="item" title="Show all votes">Back to motions</a>
6 </div>
7 </div>
8 </div>
9 {{ with .Decision }}
10 <div class="column">
11 <div class="ui raised segment">
12 {{ template "motion_fragment" . }}
13 </div>
14 </div>
15 {{ end }}
16 <form action="/vote/{{ .Decision.Tag }}/{{ .VoteChoice }}" method="post">
17 <div class="ui form">
18 {{ if eq 1 .VoteChoice }}
19 <button class="ui right labeled green icon button" type="submit"><i class="check circle icon"></i> Vote {{ .VoteChoice }}</button>
20 {{ else if eq -1 .VoteChoice }}
21 <button class="ui right labeled red icon button" type="submit"><i class="minus circle icon"></i> Vote {{ .VoteChoice }}</button>
22 {{ else }}
23 <button class="ui right labeled grey icon button" type="submit"><i class="circle icon"></i> Vote {{ .VoteChoice }}</button>
24 {{ end }}
25 </div>
26 </form>
27 {{ template "footer" . }}