24 lines
1.1 KiB
HTML
24 lines
1.1 KiB
HTML
|
{{ define "title" }}Vote on Motion {{ .Motion.Tag }}{{ end }}
|
||
|
|
||
|
{{ define "main" }}
|
||
|
<div class="ui raised segment">
|
||
|
{{ template "motion_display" .Motion }}
|
||
|
<form action="/vote/{{ .Motion.Tag }}/{{ .Form.Choice }}" method="post">
|
||
|
<input type="hidden" name="csrf_token" value="{{ .CSRFToken }}">
|
||
|
{{ with .Form }}
|
||
|
<div class="ui form">
|
||
|
{{ if eq "aye" .Choice.Label }}
|
||
|
<button class="ui right labeled green icon button" type="submit">
|
||
|
<i class="check circle icon"></i> Vote {{ .Choice }}</button>
|
||
|
{{ else if eq "naye" .Choice.Label }}
|
||
|
<button class="ui right labeled red icon button" type="submit">
|
||
|
<i class="minus circle icon"></i> Vote {{ .Choice }}</button>
|
||
|
{{ else }}
|
||
|
<button class="ui right labeled grey icon button" type="submit">
|
||
|
<i class="circle icon"></i> Vote {{ .Choice }}</button>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
</form>
|
||
|
</div>
|
||
|
{{ end }}
|