List.html 3.67 KB
Newer Older
1
<f:layout name="Default"/>
Ole Hartwig's avatar
Ole Hartwig committed
2
3
4
5

<f:section name="main">

    <div class="tx_certifications">
6
        <ul class="cert-tabs">
Sascha Schmidt's avatar
Sascha Schmidt committed
7
8
9
10
            <f:for each="{chars}" as="label">
                <li>
                    <f:link.action action="list" arguments="{char: label}">{label}</f:link.action>
                </li>
Ole Hartwig's avatar
Ole Hartwig committed
11
            </f:for>
12
        </ul>
13
        <div class="cert-panel">
Sascha Schmidt's avatar
Sascha Schmidt committed
14
15
16
17
            <h2 id="{char}">{char}</h2>
            <table>
                <thead>
                <tr>
18
19
20
21
22
23
24
25
26
                    <th>
                        <f:translate key="tx_certifications_domain_model_user.name"/>
                    </th>
                    <th>
                        <f:translate key="tx_certifications_domain_model_user.country"/>
                    </th>
                    <th>
                        <f:translate key="tx_certifications_domain_model_user.certificate"/>
                    </th>
Sascha Schmidt's avatar
Sascha Schmidt committed
27
28
29
30
31
32
                </tr>
                </thead>
                <f:for each="{feUsers}" as="feUser">
                    <tr>
                        <f:if condition="{settings.singlePid}">
                            <f:then>
33
34
35
36
37
38
39
                                <td>
                                    <h5>
                                        <f:link.action action="show" pageUid="{settings.singlePid}"
                                                       arguments="{user : feUser}">{feUser.lastName}, {feUser.firstName}
                                        </f:link.action>
                                    </h5>
                                </td>
Sascha Schmidt's avatar
Sascha Schmidt committed
40
41
                            </f:then>
                            <f:else>
42
43
44
45
46
47
48
                                <td>
                                    <h5>
                                        <f:link.action action="show" arguments="{user : feUser}">{feUser.lastName},
                                            {feUser.firstName}
                                        </f:link.action>
                                    </h5>
                                </td>
Sascha Schmidt's avatar
Sascha Schmidt committed
49
50
51
52
53
54
55
                            </f:else>
                        </f:if>
                        <td>{feUser.country}</td>
                        <td>
                            <ul>
                                <f:for each="{feUser.certificates}" as="certificate">
                                    <f:if condition="{0:certificate.allowListing} == {0:'1'}">
56
                                        <li>{certificate.certificateType.title}:
Sascha Schmidt's avatar
Sascha Schmidt committed
57
                                            <f:if condition="{certificate.versionFour}">
58
59
60
61
62
63
64
65
66
67
68
69
                                                <f:then>
                                                    <f:translate
                                                            key="tx_certifications_domain_model_user.no_expiration"/>
                                                </f:then>
                                                <f:else>
                                                    <f:format.date format="d.m.Y">{certificate.certificationDate}
                                                    </f:format.date>
                                                    -
                                                    <f:format.date format="d.m.Y">{certificate.expirationDate}
                                                    </f:format.date>
                                                </f:else>
                                            </f:if>
Sascha Schmidt's avatar
Sascha Schmidt committed
70
71
72
73
74
75
76
77
                                        </li>
                                    </f:if>
                                </f:for>
                            </ul>
                        </td>
                    </tr>
                </f:for>
            </table>
78
        </div>
Ole Hartwig's avatar
Ole Hartwig committed
79
80
    </div>

Sascha Schmidt's avatar
Sascha Schmidt committed
81
</f:section>