mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-18 08:14:24 +00:00
39 lines
1.2 KiB
Twig
39 lines
1.2 KiB
Twig
{% extends '@ChillMain/layout.html.twig' %}
|
|
|
|
{% block content %}
|
|
<h1>{{ title|default('List of %class%')|trans({'%class%': class}) }}</h1>
|
|
|
|
{% if entities|length == 0 %}
|
|
<p>{{ no_existing_entities_sentences|default('No entities')|trans }}</p>
|
|
{% else %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
{% for c in columns %}
|
|
<th>{{ c|trans }}</th>
|
|
{% endfor %}
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for entity in entities %}
|
|
<tr>
|
|
{% for c in columns %}
|
|
<td>{{ entity|chill_crud_display(c) }}</td>
|
|
{% endfor %}
|
|
|
|
<td>
|
|
<ul class="record-actions">
|
|
{% for action in actions %}
|
|
<li>{{ action }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% endblock content %} |