mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
45 lines
1.4 KiB
Twig
45 lines
1.4 KiB
Twig
{% extends "@ChillActivity/Admin/layout_activity.html.twig" %}
|
|
|
|
{% block admin_content %}
|
|
<h1>{{ 'ActivityPresence list'|trans }}</h1>
|
|
|
|
<table class="records_list">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ 'Name'|trans }}</th>
|
|
<th>{{ 'Active'|trans }}</th>
|
|
<th>{{ 'Actions'|trans }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for entity in entities %}
|
|
<tr>
|
|
<td>{{ entity.name|localize_translatable_string }}</td>
|
|
<td style="text-align:center;">
|
|
{%- if entity.active -%}
|
|
<i class="fa fa-check-square-o"></i>
|
|
{%- else -%}
|
|
<i class="fa fa-square-o"></i>
|
|
{%- endif -%}
|
|
</td>
|
|
<td>
|
|
<ul class="record_actions">
|
|
<li>
|
|
<a href="{{ path('chill_crud_activity_presence_edit', { 'id': entity.id }) }}" class="sc-button bt-edit" title="{{ 'edit'|trans }}"></a>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<ul class="record_actions">
|
|
<li>
|
|
<a href="{{ path('chill_crud_activity_presence_new') }}" class="sc-button bt-create">
|
|
{{ 'Create a new activity presence'|trans }}
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
{% endblock %}
|