Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
voting.typo3.org
extensions
election
Commits
d4ae639d
Commit
d4ae639d
authored
Mar 12, 2019
by
Stefan Busemann
Browse files
[BUGFIX] show nominees at running electiions
parent
cfad0caa
Changes
1
Show whitespace changes
Inline
Side-by-side
Resources/Private/Templates/FeElection/Show.html
View file @
d4ae639d
...
...
@@ -7,7 +7,39 @@
<div>
{election.description}
</div>
<h2><f:translate
key=
"view.fe.election.show.result"
/></h2>
<f:if
condition=
"!{election.ElectionFinished}"
>
<f:then>
<h2>
Current Voting
</h2>
<table
class=
"table table-hover"
>
<thead>
<tr>
<th>
<f:translate
key=
"view.fe.election.show.nominee"
/>
</th>
<th>
Status
</th>
</tr>
</thead>
<tbody>
<f:for
each=
"{election.nominees}"
as=
"nominee"
>
<tr>
<td>
{nominee.lastName}, {nominee.firstName} {nominee.MiddleName}
</td>
<td>
<f:translate
key=
"view.fe.election.show.active"
/>
</td>
</tr>
</f:for>
</tbody>
</table>
</f:then>
<f:else>
<h2>
<f:translate
key=
"view.fe.election.show.result"
/>
</h2>
<table
class=
"table table-hover"
>
<thead>
<tr>
...
...
@@ -29,7 +61,9 @@
<f:if
condition=
"{election.ElectionFinished}"
>
<f:then>
<f:if
condition=
"{result.relativevotes}"
>
{result.relativevotes}% ({result.votes}
<f:translate
key=
"view.fe.election.show.votes"
/>
)
{result.relativevotes}% ({result.votes}
<f:translate
key=
"view.fe.election.show.votes"
/>
)
</f:if>
</f:then>
<f:else>
...
...
@@ -41,4 +75,6 @@
</f:for>
</tbody>
</table>
</f:else>
</f:if>
</f:section>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment