fix of twig if condition for person resources

This commit is contained in:
Julie Lenaerts 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>

View File

@ -233,7 +233,7 @@ Remove resource: "Supprimer ressource"
Are you sure you want to remove the resource for "%name%" ?: Étes-vous sûr de vouloir supprimer cette ressource de %name%?
The resource has been successfully removed.: "La ressource a été supprimée."
List of resources: "Liste des ressources"
There are no available resources: "Il y aucun ressource"
There are no available resources: "Aucun ressource"
no comment found: "Aucun commentaire"
Select a type: "Choisissez un type"
Select a person: "Choisissez un usager"