mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-25 03:26:12 +00:00
49 lines
1.8 KiB
Twig
49 lines
1.8 KiB
Twig
{% extends '@ChillMain/CRUD/Admin/index.html.twig' %}
|
|
|
|
{% block admin_content %}
|
|
{% embed '@ChillMain/CRUD/_index.html.twig' %}
|
|
{% block table_entities_thead_tr %}
|
|
<th>{{ 'Id'|trans }}</th>
|
|
<th>{{ 'Label'|trans }}</th>
|
|
<th>{{ 'household.allowHolder'|trans }}</th>
|
|
<th>{{ 'household.shareHousehold'|trans }}</th>
|
|
<th> </th>
|
|
{% endblock %}
|
|
|
|
{% block table_entities_tbody %}
|
|
{% for entity in entities %}
|
|
<tr>
|
|
<td>{{ entity.id }}</td>
|
|
<td>{{ entity.label|localize_translatable_string }}</td>
|
|
<td style="text-align:center;">
|
|
{%- if entity.allowHolder -%}
|
|
<i class="fa fa-check-square-o"></i>
|
|
{%- else -%}
|
|
<i class="fa fa-square-o"></i>
|
|
{%- endif -%}
|
|
</td>
|
|
<td style="text-align:center;">
|
|
{%- if entity.shareHousehold -%}
|
|
<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="{{ chill_path_add_return_path('chill_crud_person_household_position_edit', { 'id': entity.id }) }}" class="btn btn-edit"></a>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endblock %}
|
|
|
|
{% block actions_before %}
|
|
<li class='cancel'>
|
|
<a href="{{ path('chill_main_admin_central') }}" class="btn btn-cancel">{{'Back to the admin'|trans}}</a>
|
|
</li>
|
|
{% endblock %}
|
|
{% endembed %}
|
|
{% endblock %} |