Commit 1a0e9d8e authored by Christoph Pascher's avatar Christoph Pascher
Browse files

FE basic template for results

parent 6be5cf94
......@@ -472,6 +472,18 @@
<trans-unit id="view.fe.election.vote.vote">
<source>Vote</source>
</trans-unit>
<trans-unit id="view.fe.election.show.result">
<source>Voting Results</source>
</trans-unit>
<trans-unit id="view.fe.election.show.active">
<source>Voting in Progress</source>
</trans-unit>
<trans-unit id="view.fe.election.show.nominee">
<source>Nominee</source>
</trans-unit>
<trans-unit id="view.fe.election.show.votes">
<source>Votes</source>
</trans-unit>
<!-- FE ELECTION VOTING VALIDATION-->
......
......@@ -4,12 +4,41 @@
<h1>
{election.title}
</h1>
<f:if condition="{election.ElectionFinished}">
<f:then>
<h2>Result</h2>
</f:then>
<f:else>
active
</f:else>
</f:if>
<div>
{election.description}
</div>
<h2><f:translate key="view.fe.election.show.result"/></h2>
<table class="table table-hover">
<thead>
<tr>
<th>
<f:translate key="view.fe.election.show.nominee"/>
</th>
<th>
<f:translate key="view.fe.election.show.votes"/>
</th>
</tr>
</thead>
<tbody>
<f:for each="{results}" as="result">
<tr>
<td>
{result.nominee.lastName}, {result.nominee.firstName} {result.nominee.MiddleName}
</td>
<td>
<f:if condition="{election.ElectionFinished}">
<f:then>
<f:if condition="{result.relativevotes}">
{result.relativevotes}% ({result.votes} <f:translate key="view.fe.election.show.votes"/>)
</f:if>
</f:then>
<f:else>
<f:translate key="view.fe.election.show.active"/>
</f:else>
</f:if>
</td>
</tr>
</f:for>
</tbody>
</table>
</f:section>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment