mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 14:54:57 +00:00
FEATURE [center][isActive] add getter and setter + integrate into template
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
{% embed '@ChillMain/CRUD/_index.html.twig' %}
|
||||
{% block table_entities_thead_tr %}
|
||||
<th>{{ 'Label'|trans }}</th>
|
||||
{# <th>{{ 'Active'|trans }}</th>#}
|
||||
<th>{{ 'Active'|trans }}</th>
|
||||
<th> </th>
|
||||
{% endblock %}
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
{% for entity in entities %}
|
||||
<tr>
|
||||
<td>{{ entity.name }}</td>
|
||||
{# <td style="text-align:center">#}
|
||||
{# {% if entity.isActive %}#}
|
||||
{# <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.isActive %}
|
||||
<i class="fa fa-check-square-o"></i>
|
||||
{% else %}
|
||||
<i class="fa fa-square-o"></i>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
<ul class="record_actions">
|
||||
<li>
|
||||
|
Reference in New Issue
Block a user