2020-06-07 15:45:42 +02:00
|
|
|
<table class="full-width data-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
[%- for column in columns %]
|
|
|
|
{% if "[[ column.name ]]" not in skip_columns %}
|
2020-07-08 14:38:55 +02:00
|
|
|
<th>{{ _("[[ column.name ]]") }}</th>
|
2020-06-07 15:45:42 +02:00
|
|
|
{% endif %}
|
|
|
|
[%- endfor %]
|
2020-07-08 14:38:55 +02:00
|
|
|
<th>{{ _("Actions") }}</th>
|
2020-06-07 15:45:42 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for instance in instances %}
|
|
|
|
<tr>
|
|
|
|
[%- for column in columns %]
|
|
|
|
{% if "[[ column.name ]]" not in skip_columns %}
|
2020-06-08 12:19:28 +02:00
|
|
|
<td>
|
|
|
|
[%- if column.type in ['relationship'] %]
|
|
|
|
[%- if column.multiple %]
|
|
|
|
{{ instance.[[ column.name|pluralize ]] }}
|
|
|
|
[%- else %]
|
|
|
|
{{ instance.[[ column.name ]] }}
|
|
|
|
[%- endif %]
|
|
|
|
[%- else %]
|
|
|
|
{{ instance.[[ column.name ]] }}
|
|
|
|
[%- endif %]
|
|
|
|
</td>
|
2020-06-07 15:45:42 +02:00
|
|
|
{% endif %}
|
|
|
|
[%- endfor %]
|
|
|
|
<td>
|
2021-05-08 15:52:52 +02:00
|
|
|
{% include "[[ name|camel_to_snake ]]/_action.html" %} |
|
2020-06-07 15:45:42 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|