List.html 2.79 KB
Newer Older
1
<f:layout name="Default"/>
Thomas Löffler's avatar
Thomas Löffler committed
2
<f:section name="main">
3
	<f:flashMessages/>
Thomas Löffler's avatar
Thomas Löffler committed
4

5
6
	<f:render partial="Member/Filter" arguments="{filterTerm: filter}"/>
	<f:render partial="Member/Membership" arguments="{members: members, memberships: memberships, filterTerm: filter}"/>
7

8
9
10
11
12
	<table class="tx_t3omembership featured">
		<tr>
			<th>
				<f:translate key="tx_t3omembership_domain_model_member.name"/>
			</th>
13
			<th>Professional support</th>
14
15
16
17
			<th>
				<f:translate key="tx_t3omembership_domain_model_member.membership"/>
			</th>
		</tr>
Thomas Löffler's avatar
Thomas Löffler committed
18

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
		<f:for each="{members}" as="member">
			<f:cycle values="{0: 'tr-even', 1: 'tr-odd'}" as="cycle">
				<tr class="{cycle}">
					<f:if condition="{member.membership.personalMembership}">
						<f:then>
							<f:if condition="{member.lastname}">
								<f:then>
									<td>{member.firstname} {member.lastname}</td>
								</f:then>

								<f:else>
									<td>{member.name}</td>
								</f:else>
							</f:if>
						</f:then>
						<f:else>
							<td>
36
								<f:if condition="{member.agency}">
37
									<f:then>
38
39
40
41
										<f:link.action action="show" controller="Agency" pluginName="Pi1"
													   extensionName="Typo3Agencies" arguments="{agency: member.agency}"
													   pageUid="{settings.agenciesPid}"
													   title="Professional services of TYPO3 {member.membership} member {member.name}">
42
											{member.name}
43
										</f:link.action>
44
45
									</f:then>
									<f:else>
46
47
48
49
50
51
52
53
54
55
56
57
										<f:if condition="{member.url}">
											<f:then>
												<f:link.external uri="{member.url}"
																 title="Website of TYPO3 {member.membership} member {member.name}"
																 target="_blank">
													{member.name}
												</f:link.external>
											</f:then>
											<f:else>
												{member.name}
											</f:else>
										</f:if>
58
59
60
61
62
									</f:else>
								</f:if>
							</td>
						</f:else>
					</f:if>
63
					<td>
64
65
66
67
						<f:if condition="{member.membership.personalMembership}">
							<f:else>
								<f:if condition="{member.agency}">
									<f:link.action action="show" controller="Agency" pluginName="Pi1"
68
69
70
										   extensionName="Typo3Agencies" arguments="{agency: member.agency}"
										   pageUid="{settings.agenciesPid}" class="supporttypes"
										   title="Professional services of TYPO3 {member.membership} member {member.name}">
71
72
73
74
75
76
										<f:if condition="{member.agency.trainingService}"><span class="ico i-training"></span></f:if>
										<f:if condition="{member.agency.hostingService}"><span class="ico i-hosting"></span></f:if>
										<f:if condition="{member.agency.developmentService}"><span class="ico i-development"></span></f:if>
									</f:link.action>
								</f:if>
							</f:else>
77
78
						</f:if>
					</td>
79
80
81
82
83
84
					<td>{member.membership}</td>
				</tr>
			</f:cycle>
		</f:for>
	</table>
</f:section>