From 7a78e8a6a7327e4a0cba3b0e66de1b035485743d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 26 Jan 2022 14:00:45 +0100 Subject: [PATCH] fixes for pesonnes ressources --- .../Resources/views/PersonResource/create.html.twig | 3 ++- .../Resources/views/PersonResource/list.html.twig | 9 +++------ .../ChillPersonBundle/translations/messages.fr.yml | 10 +++++----- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/create.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/create.html.twig index 6e05f2d6d..46ba4ebef 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/create.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/create.html.twig @@ -1,5 +1,6 @@
+

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

{% include "@ChillPerson/PersonResource/form.html.twig" %}
@@ -11,4 +12,4 @@ -
\ No newline at end of file + diff --git a/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/list.html.twig index 50aeb96e2..ab7aa8632 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/list.html.twig @@ -18,7 +18,7 @@

{{ 'List of resources'|trans }}

-{% if personResources is not null %} +{% if personResources|length > 0 %} {% for resource in personResources %}
@@ -62,9 +62,7 @@ {% if resource.comment.comment is not null %}
-
-
{{ resource.comment.comment }}
-
+
{{ resource.comment|chill_entity_render_box }}
{% endif %} @@ -91,10 +89,9 @@ {% endfor %} {% else %} -

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

+

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

{% endif %} -

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

{% include "@ChillPerson/PersonResource/create.html.twig" %} diff --git a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml index 664477d34..234dc717c 100644 --- a/src/Bundle/ChillPersonBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillPersonBundle/translations/messages.fr.yml @@ -225,15 +225,15 @@ Concerned scopes: Services concernés # person resource -person_resources_menu: "Ressources" +person_resources_menu: "Personnes ressources" Person resources: "Ressources de la personne" -Add a person resource: "Ajouter une ressource" -edit resource: "Modifier ressource" -Remove resource: "Supprimer ressource" +Add a person resource: "Ajouter une personne ressource" +edit resource: "Modifier une personne ressource" +Remove resource: "Supprimer une personne 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: "Aucune personne ressources renseignée" no comment found: "Aucun commentaire" Select a type: "Choisissez un type" Select a person: "Choisissez un usager"