1 {{ template
"header" . }}
4 <div class=
"ui basic segment">
5 <div class=
"ui floated right secondary menu">
6 <a href=
"/motions/" class=
"item" title=
"Show all votes">Back to
12 <div class=
"ui raised segment">
14 {{ template
"motion_fragment" . }}
16 <form action=
"/proxy/{{ .Decision.Tag }}" method=
"post">
17 <div class=
"ui form{{ if .Form.Errors }} error{{ end }}">
18 <div class=
"two fields">
19 <div class=
"required field{{ if .Form.Errors.Voter }} error{{ end }}">
20 <label for=
"Voter">Voter
</label>
23 <option value=
"{{ .Id }}"
24 {{ if eq (.Id | print) $form.Voter }}
25 selected{{ end }}
>{{ .Name }}
</option>
29 <div class=
"required field{{ if .Form.Errors.Vote }} error{{ end }}">
30 <label for=
"Vote">Vote
</label>
32 <option value=
"1"{{ if eq .Form.Vote
"1" }} selected{{ end }}
>Aye
</option>
33 <option value=
"0"{{ if eq .Form.Vote
"0" }} selected{{ end }}
>Abstain
</option>
34 <option value=
"-1"{{ if eq .Form.Vote
"-1" }} selected{{ end }}
>Naye
</option>
38 <div class=
"required field{{ if .Form.Errors.Justification }} error{{ end }}">
39 <label for=
"Justification">Justification
</label>
40 <textarea name=
"Justification" rows=
"2">{{ .Form.Justification }}
</textarea>
42 {{ with .Form.Errors }}
43 <div class=
"ui error message">
44 {{ with .Voter }}
<p>{{ . }}
</p>{{ end }}
45 {{ with .Vote }}
<p>{{ . }}
</p>{{ end }}
46 {{ with .Justification }}
<p>{{ . }}
</p>{{ end }}
49 <button class=
"ui primary left labeled icon button" type=
"submit"><i class=
"users icon"></i> Proxy Vote
</button>
54 {{ template
"footer" . }}