You are here

date-recur-settings-frequency-table.html.twig in Recurring Dates Field 3.1.x

{% 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
  1. {% if table|length > 0 %}
  2. <table{{ attributes }}>
  3. <thead>
  4. <tr>
  5. <th>{{ 'Frequency'|t }}</th>
  6. <th>{{ 'Setting'|t }}</th>
  7. <th colspan="{{ all_parts|length }}" width="75%">{{ 'Parts'|t }}</th>
  8. </tr>
  9. </thead>
  10. {% for row in table %}
  11. <tr>
  12. <td>{{ row.frequency }}</td>
  13. <td>{{ row.setting }}</td>
  14. {% for part in row.parts.parts %}
  15. <td>
  16. {{ part }}
  17. </td>
  18. {% endfor %}
  19. </tr>
  20. {% endfor %}
  21. </table>
  22. {% endif %}