mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
FEATURE [center][isActive] add getter and setter + integrate into template
This commit is contained in:
parent
6301505563
commit
7c7c5862c6
@ -126,6 +126,11 @@ class Center implements HasCenterInterface
|
|||||||
return $this->regroupments;
|
return $this->regroupments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getIsActive(): bool
|
||||||
|
{
|
||||||
|
return $this->isActive;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $name
|
* @param $name
|
||||||
*
|
*
|
||||||
@ -137,4 +142,11 @@ class Center implements HasCenterInterface
|
|||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setIsActive(bool $isActive): self
|
||||||
|
{
|
||||||
|
$this->isActive = $isActive;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{% embed '@ChillMain/CRUD/_index.html.twig' %}
|
{% embed '@ChillMain/CRUD/_index.html.twig' %}
|
||||||
{% block table_entities_thead_tr %}
|
{% block table_entities_thead_tr %}
|
||||||
<th>{{ 'Label'|trans }}</th>
|
<th>{{ 'Label'|trans }}</th>
|
||||||
{# <th>{{ 'Active'|trans }}</th>#}
|
<th>{{ 'Active'|trans }}</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
@ -12,13 +12,13 @@
|
|||||||
{% for entity in entities %}
|
{% for entity in entities %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ entity.name }}</td>
|
<td>{{ entity.name }}</td>
|
||||||
{# <td style="text-align:center">#}
|
<td style="text-align:center">
|
||||||
{# {% if entity.isActive %}#}
|
{% if entity.isActive %}
|
||||||
{# <i class="fa fa-check-square-o"></i>#}
|
<i class="fa fa-check-square-o"></i>
|
||||||
{# {% else %}#}
|
{% else %}
|
||||||
{# <i class="fa fa-square-o"></i>#}
|
<i class="fa fa-square-o"></i>
|
||||||
{# {% endif %}#}
|
{% endif %}
|
||||||
{# </td>#}
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<ul class="record_actions">
|
<ul class="record_actions">
|
||||||
<li>
|
<li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user