63 lines
2.5 KiB
HTML
63 lines
2.5 KiB
HTML
<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:variable name="table_caption">{record -> f:render.text(field:'table_caption')}</f:variable>
|
|
<f:if condition="{table_caption}">
|
|
<caption>{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>
|