Commit ed400698 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[FEATURE] List all active and inactive elections

parent b3841d10
......@@ -3,23 +3,76 @@
<f:section name="Main">
<h1>Elections</h1>
<table>
<h2>Upcoming and active Elections</h2>
<table class="table table-hover">
<thead>
<tr>
<th>
Title
</th>
<th>
Startdate
</th>
<th>
Enddate
</th>
</tr>
</thead>
<tbody>
<f:for each="{elections}" as="election">
<tr>
<td>
{election.title}
</td>
</tr>
<f:if condition="{election.electionFinished}">
<f:else>
<tr>
<td>
<f:link.action controller="FeElection" action="show" arguments="{election:election}">{election.title}</f:link.action>
</td>
<td>
{election.title}
</td>
<td>
{election.title}
</td>
</tr>
</f:else>
</f:if>
</f:for>
</tbody>
</table>
<h2>Expired Elections</h2>
<table class ="table table-hover">
<thead>
<tr>
<th>
Title
</th>
<th>
Startdate
</th>
<th>
Enddate
</th>
</tr>
</thead>
<tbody>
<f:for each="{elections}" as="election">
<f:if condition="{election.electionFinished}">
<f:then>
<tr>
<td>
<f:link.action controller="FeElection" action="show" arguments="{election:election}">{election.title}</f:link.action>
</td>
<td>
{election.title}
</td>
<td>
{election.title}
</td>
</tr>
</f:then>
</f:if>
</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