List.html 2.53 KB
Newer Older
Felix Herrmann's avatar
Felix Herrmann committed
1
2
3
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" 
	  xmlns:core="http://typo3.org/ns/TYPO3/Core/ViewHelpers"
	  data-namespace-typo3-fluid="true">
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<table class="table">
	<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.email">Email</f:translate>
			</th>
			<th>
				<f:translate key="model.nominee.field.elections_number"># Elections</f:translate>
			</th>
			<th>
				<f:translate key="view.be.anything.options">Options</f:translate>
			</th>
		</tr>
	</thead>
24
	<tbody class="shuffle-rows">
25
		<f:for each="{nominees}" as="nominee">
26
			<tr {f:if(condition:'{nominee.public}',else:'style="background-color:#ddd;"')}>
27
				<td>
28
29
30
31
32
					<f:if condition="{nominee.image}">
						<f:then>
							<f:image image="{nominee.image}" width="50c" height="50c"/>
						</f:then>
						<f:else>
Felix Herrmann's avatar
Felix Herrmann committed
33
							<f:image src="EXT:core/Resources/Public/Icons/T3Icons/svgs/avatar/avatar-default.svg" width="50c" height="50c"/>
34
35
						</f:else>
					</f:if>
36
37
				</td>
				<td>
38
					<f:link.action action="edit" controller="BeNominee" arguments="{nominee:nominee}">
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
						{nominee.fullName}
					</f:link.action>
				</td>
				<td>
					{nominee.email}
				</td>
				<td>
					{nominee.elections -> f:count()}
				</td>
				<td>
					<div class="btn-group">
						<f:link.action class="btn btn-default" action="edit" controller="BeNominee"
									   arguments="{nominee:nominee}">
							<core:icon identifier="actions-edit-rename"/>
						</f:link.action>
						<f:link.action class="btn btn-default" action="delete" controller="BeNominee"
									   arguments="{nominee:nominee}">
							<core:icon identifier="actions-edit-delete"/>
						</f:link.action>
58
59
60
61
62
63
64
65
66
67
68
69
70
71
						<f:if condition="{nominee.public}">
							<f:then>
								<f:link.action class="btn btn-default" action="hide" controller="BeNominee"
											   arguments="{nominee:nominee}" title="{f:translate(key:'view.be.nominee.list.hide_link_title')}">
									<core:icon identifier="actions-edit-hide"/>
								</f:link.action>
							</f:then>
							<f:else>
								<f:link.action class="btn btn-default" action="show" controller="BeNominee"
											   arguments="{nominee:nominee}" title="{f:translate(key:'view.be.nominee.list.show_link_title')}">
									<core:icon identifier="actions-edit-unhide"/>
								</f:link.action>
							</f:else>
						</f:if>
72
73
74
75
76
77
					</div>
				</td>
			</tr>
		</f:for>
	</tbody>
</table>
Felix Herrmann's avatar
Felix Herrmann committed
78
</html>