You are here

forum-access-table.html.twig in Forum Access 8

<table{{ attributes.addClass(classes) }}>
    {% if form.header %}
        <thead>
        <tr>
            {% for key, column in form.header if key|first != '#' %}
                <th>
                    {{- column }}
                </th>
            {% endfor %}
        </tr>
        </thead>
    {% endif %}
    {% for key, column in form.rows if key|first != '#' %}
        <tr>
            {% for key2, column2 in column if key2|first != '#' %}
                <td>
                    {{- column2 }}
                </td>
            {% endfor %}
        </tr>
    {% endfor %}
</table>

File

templates/forum-access-table.html.twig
View source
  1. <table{{ attributes.addClass(classes) }}>
  2. {% if form.header %}
  3. <thead>
  4. <tr>
  5. {% for key, column in form.header if key|first != '#' %}
  6. <th>
  7. {{- column }}
  8. </th>
  9. {% endfor %}
  10. </tr>
  11. </thead>
  12. {% endif %}
  13. {% for key, column in form.rows if key|first != '#' %}
  14. <tr>
  15. {% for key2, column2 in column if key2|first != '#' %}
  16. <td>
  17. {{- column2 }}
  18. </td>
  19. {% endfor %}
  20. </tr>
  21. {% endfor %}
  22. </table>