cacert-boardvoting/templates/direct_vote_form.html

27 lines
1 KiB
HTML
Raw Normal View History

2017-04-21 09:31:32 +00:00
{{ template "header" . }}
2017-04-30 00:37:29 +00:00
<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 }}
2017-04-21 09:31:32 +00:00
<form action="/vote/{{ .Decision.Tag }}/{{ .VoteChoice }}" method="post">
2017-04-30 00:37:29 +00:00
<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>
2017-04-21 09:31:32 +00:00
</form>
{{ template "footer" . }}