templates/default/components/molecules/cms-table/cms-table.html.twig line 1

Open in your IDE?
  1. <div class="cms-table {{ class|default }}">
  2. <table class="cms-table__data">
  3. {% if tableData.thead|default %}
  4. <thead>
  5. <tr class="cms-table__head">
  6. {% for thead in tableData.thead %}
  7. <th class="cms-table__item-head">{{ thead.value }}</th>
  8. {% endfor %}
  9. </tr>
  10. </thead>
  11. {% endif %}
  12. <tbody>
  13. {% for tbody in tableData.tbody %}
  14. <tr class="cms-table__row">
  15. {% for item in tbody.body %}
  16. <td class="cms-table__item">{{ item.value }}</td>
  17. {% endfor %}
  18. </tr>
  19. {% endfor %}
  20. </tbody>
  21. </table>
  22. </div>