summaryrefslogtreecommitdiff
path: root/boardvoting/templates/direct_vote_form.html
blob: 649c0593533a52aa327ec508ec983da24de9080d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{{ template "header.html" . }}
<div class="column">
    <div class="ui basic segment">
        <div class="ui floated right secondary menu">
            <a href="/motions/" class="item" title="Show all votes">Back to motions</a>
        </div>
    </div>
</div>
{{ with .Decision }}
<div class="column">
    <div class="ui raised segment">
        {{ template "motion_fragment" . }}
    </div>
</div>
{{ end }}
<form action="/vote/{{ .Decision.Tag }}/{{ .VoteChoice }}" method="post">
    <div class="ui form">
        {{ 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 }}
    </div>
</form>
{{ template "footer.html" . }}