Commit 2ebf5740 authored by Stefan Busemann's avatar Stefan Busemann

[FEATURE] Improve list styling

parent 46ac9bd2
{namespace core=TYPO3\CMS\Core\ViewHelpers}
<table class="table">
<table class="table table-hover">
<thead>
<tr>
<th>
<f:translate key="model.nominee.field.image">Image</f:translate>
</th>
<th>
<f:translate key="model.abstract_person.field.full_name">Name</f:translate>
</th>
<th>
<f:translate key="model.abstract_person.field.url">URL</f:translate>
</th>
<th>
<f:translate key="view.fe.election.vote.vote">Vote</f:translate>
</th>
</tr>
<tr>
<th>
<f:translate key="model.nominee.field.image">Image</f:translate>
</th>
<th>
<f:translate key="model.abstract_person.field.full_name">Name</f:translate>
</th>
<th>
<f:translate key="view.fe.election.vote.vote">Vote</f:translate>
</th>
</tr>
</thead>
<tbody>
<f:for each="{nominees}" as="nominee">
<f:if condition="{nominee.public}">
<tr>
<td>
<f:if condition="{nominee.image}">
<f:then>
<f:image image="{nominee.image}" width="50c" height="50c"/>
</f:then>
<f:else>
<f:image src="EXT:core/Resources/Public/Icons/T3Icons/avatar/avatar-default.svg" width="50c" height="50c"/>
</f:else>
</f:if>
</td>
<td>
<f:link.external target="_blank" uri="{nominee.url}">{nominee.fullName}</f:link.external>
</td>
<td>
<f:link.page pageUid="{nominee.url}">{nominee.url}</f:link.page>
</td>
<td>
<f:form.checkbox property="nominees.{nominee.uid}" value="{nominee.uid}"/>
</td>
</tr>
</f:if>
</f:for>
<f:for each="{nominees}" as="nominee">
<f:if condition="{nominee.public}">
<tr>
<td>
<f:if condition="{nominee.image}">
<f:then>
<f:image image="{nominee.image}" width="50c" height="50c"/>
</f:then>
<f:else>
<f:image src="EXT:core/Resources/Public/Icons/T3Icons/avatar/avatar-default.svg" width="50c"
height="50c"/>
</f:else>
</f:if>
</td>
<td>
<f:if condition="{nominee.url}">
<f:then>
<f:link.external target="_blank" uri="{nominee.url}">{nominee.fullName}</f:link.external>
</f:then>
<f:else>
{nominee.url}">{nominee.fullName}
</f:else>
</f:if>
</td>
<td>
<f:form.checkbox property="nominees.{nominee.uid}" value="{nominee.uid}"/>
</td>
</tr>
</f:if>
</f:for>
</tbody>
</table>
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