Vote.html 1.42 KB
Newer Older
1
2
3
<f:layout name="Frontend"/>

<f:section name="Main">
Oliver Eglseder's avatar
Oliver Eglseder committed
4
5
6
7
8
9
10
11
12
13
14
15
16
	<h2>
		<f:translate key="view.fe.election.vote.election">Election</f:translate>
		: {electionInvitation.electionCircular.election.title}
	</h2>
	<h3>
		<f:translate key="view.fe.election.vote.nominees">Nominees</f:translate>
	</h3>
	<p>
		<f:translate key="view.fe.election.vote.votes"
					 arguments="{0:electionInvitation.electionCircular.election.numberOfVotes}">You can vote up to
			{electionInvitation.electionCircular.election.numberOfVotes} nominees
		</f:translate>
	</p>
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

	<f:form.validationResults>
		<f:if condition="{validationResults.flattenedErrors}">

			<f:for each="{validationResults.flattenedErrors}" as="errors" key="propertyPath">
				<ul class="typo3-messages">
					<f:for each="{errors}" as="error">
						<li class="alert alert-danger">
							<p class="alert-message">{error}. <br>
								<small> Code: {error.code}</small>
							</p>
						</li>
					</f:for>
				</ul>
			</f:for>

		</f:if>
	</f:form.validationResults>

Oliver Eglseder's avatar
Oliver Eglseder committed
36
	<f:form action="submitVote" object="{electionVoting}" objectName="electionVoting">
37
		<f:form.hidden property="electionInvitation" value="{electionInvitation}"/>
Oliver Eglseder's avatar
Oliver Eglseder committed
38
39
		<f:render partial="Model/Nominee/VoteList"
				  arguments="{nominees:electionInvitation.electionCircular.election.nominees}"/>
40
41
42
		<div class="d-flex justify-content-center">
			<f:form.submit class="btn btn-success float-md" value="vote"/>
		</div>
Oliver Eglseder's avatar
Oliver Eglseder committed
43
	</f:form>
44
	<hr>
45
</f:section>