date-recur-settings-frequency-table.html.twig in Recurring Dates Field 8.2
{% if table|length > 0 %}
<table{{ attributes }}>
<thead>
<tr>
<th>{{ 'Frequency'|t }}</th>
<th>{{ 'Setting'|t }}</th>
<th colspan="{{ all_parts|length }}" width="75%">{{ 'Parts'|t }}</th>
</tr>
</thead>
{% for row in table %}
<tr>
<td>{{ row.frequency }}</td>
<td>{{ row.setting }}</td>
{% for part in row.parts.parts %}
<td>
{{ part }}
</td>
{% endfor %}
</tr>
{% endfor %}
</table>
{% endif %}
File
templates/date-recur-settings-frequency-table.html.twig
View source
- {% if table|length > 0 %}
- <table{{ attributes }}>
- <thead>
- <tr>
- <th>{{ 'Frequency'|t }}</th>
- <th>{{ 'Setting'|t }}</th>
- <th colspan="{{ all_parts|length }}" width="75%">{{ 'Parts'|t }}</th>
- </tr>
- </thead>
- {% for row in table %}
- <tr>
- <td>{{ row.frequency }}</td>
- <td>{{ row.setting }}</td>
- {% for part in row.parts.parts %}
- <td>
- {{ part }}
- </td>
- {% endfor %}
- </tr>
- {% endfor %}
- </table>
- {% endif %}