Show.html 899 Bytes
Newer Older
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
28
29
30
31
32
33
34
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">

<f:layout name="Default" />

<f:section name="Main">

	<div class="container">
		<f:flashMessages queueIdentifier="just_vote" />

		<h3>{votingConfiguration.0.data.title}</h3>
		{votingConfiguration.0.data.description -> f:format.html()}

		<f:if condition="{votingConfiguration.0}">
			<f:then>
				<f:if condition="{votingConfiguration.0.endtime}">
					<p>The voting is possible until {votingConfiguration.0.endtime -> f:format.date(format:'Z')}</p>
				</f:if>
			</f:then>
			<f:else>
				<p>The voting is not online.</p>
			</f:else>
		</f:if>

		<f:if condition="{votingConfiguration.0.hasVoted}">
			<f:then>
				<f:render partial="Results" arguments="{_all}" />
			</f:then>
			<f:else>
				<f:render partial="Form" arguments="{_all}" />
			</f:else>
		</f:if>
	</div>
</f:section>
</html>