fix of twig if condition for person resources

This commit is contained in:
2022-01-26 14:21:39 +01:00
parent 12c68a4c9f
commit 4c125865cf
2 changed files with 3 additions and 4 deletions

View File

@@ -17,8 +17,7 @@
{% block personcontent %}
<h1>{{ 'List of resources'|trans }}</h1>
{% if personResources is not null %}
{% if personResources is not empty %}
{% for resource in personResources %}
<div class="flex-table">
<div class="item-bloc">
@@ -91,7 +90,7 @@
{% endfor %}
{% else %}
<p>{{ 'There are no available resources'|trans }}</p>
<p class="chill-no-data-statement">{{ 'There are no available resources'|trans }}</p>
{% endif %}
<h1 style="margin-bottom: 2rem;">{{ 'Add a person resource'|trans }}</h1>