-
Notifications
You must be signed in to change notification settings - Fork 3
/
Table.html
61 lines (59 loc) · 2.38 KB
/
Table.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
<f:section name="Main">
<f:if condition="{table}">
<table class="ce-table{f:if(condition: data.table_class, then: ' ce-table-{data.table_class}')}">
<f:if condition="{data.table_caption}">
<caption>{data.table_caption}</caption>
</f:if>
<f:for each="{table}" as="row" iteration="rowIterator">
<f:if condition="{rowIterator.isFirst}">
<f:then>
<f:if condition="{data.table_header_position} == 1">
<f:then>
<thead>
</f:then>
<f:else>
<tbody>
</f:else>
</f:if>
</f:then>
<f:else>
<f:if condition="{rowIterator.isLast}">
<f:if condition="{data.table_tfoot}">
</tbody>
<tfoot>
</f:if>
</f:if>
</f:else>
</f:if>
<tr>
<f:for each="{row}" as="cell" iteration="columnIterator">
<f:render partial="Table/Columns" arguments="{_all}" />
</f:for>
</tr>
<f:if condition="{rowIterator.isFirst}">
<f:then>
<f:if condition="{data.table_header_position} == 1">
</thead>
<tbody>
</f:if>
</f:then>
<f:else>
<f:if condition="{rowIterator.isLast}">
<f:if condition="{data.table_tfoot}">
<f:then>
</tfoot>
</f:then>
<f:else>
</tbody>
</f:else>
</f:if>
</f:if>
</f:else>
</f:if>
</f:for>
</table>
</f:if>
</f:section>
</html>