From 4c125865cf04db1d9192fe8f64093b8bb2d00dce Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 26 Jan 2022 14:21:39 +0100 Subject: [PATCH] fix of twig if condition for person resources --- .../Resources/views/PersonResource/list.html.twig | 5 ++--- src/Bundle/ChillPersonBundle/translations/messages.fr.yml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/list.html.twig index 50aeb96e2..e67f2d79f 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/list.html.twig @@ -17,8 +17,7 @@ {% block personcontent %}

{{ 'List of resources'|trans }}

- -{% if personResources is not null %} +{% if personResources is not empty %} {% for resource in personResources %}
@@ -91,7 +90,7 @@ {% endfor %} {% else %} -

{{ 'There are no available resources'|trans }}

+

{{ 'There are no available resources'|trans }}

{% endif %}

{{ 'Add a person resource'|trans }}

diff --git a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml index 3d2234901..6dc1c0b8d 100644 --- a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml @@ -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"