diff --git a/Resources/translations/messages.fr.yml b/Resources/translations/messages.fr.yml
index 08a62287f..cb9392ac0 100644
--- a/Resources/translations/messages.fr.yml
+++ b/Resources/translations/messages.fr.yml
@@ -18,6 +18,7 @@ Moderator: Animateur
Details of an event: Détails d'un événement
New event: Nouvel événement
Back to the most recent events: Retour aux derniers événements
+Back to the person events: Retour aux événements de la personne
Event creation: Création d'un événement
Add an event: Ajouter un événement
Event edit: Modifier un événement
diff --git a/Resources/views/Event/edit.html.twig b/Resources/views/Event/edit.html.twig
index 34158ef88..a85995ebb 100644
--- a/Resources/views/Event/edit.html.twig
+++ b/Resources/views/Event/edit.html.twig
@@ -26,8 +26,12 @@
-
-
- {{ 'Back to the most recent events'|trans }}
+
+ {% set returnPath = app.request.get('return_path') %}
+ {% set returnLabel = app.request.get('return_label') %}
+
+
+ {{ returnLabel |default('Back to the most recent events'|trans) }}
-
diff --git a/Resources/views/Event/listByPerson.html.twig b/Resources/views/Event/listByPerson.html.twig
index daa5eb540..4c17630e4 100644
--- a/Resources/views/Event/listByPerson.html.twig
+++ b/Resources/views/Event/listByPerson.html.twig
@@ -45,8 +45,46 @@
-
+ {% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %}
+ {% set returnLabel = 'Back to the person events'|trans %}
+
+ {# temporaire --
+ TODO corriger EventVoter.php pour régler les autorisations sur les boutons, puis remplacer ci-dessous par le code commenté #}
+
+
+
+
+
+ {#
{% if is_granted('CHILL_EVENT_SEE_DETAILS', participation.event) %}
-
+
{% endif %}
{% if is_granted('CHILL_EVENT_UPDATE', participation.event)
@@ -56,11 +94,18 @@
@@ -68,17 +113,25 @@
{% else %}
{% if is_granted('CHILL_EVENT_UPDATE', participation.event) %}
-
- {{ 'Event edit'|trans }}
+ {{ 'Event edit'|trans }}
{% endif %}
+
{% if is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %}
-
- {{ 'Participation Edit'|trans }}
+ {{ 'Participation Edit'|trans }}
{% endif %}
{% endif %}
+ #}
|
diff --git a/Resources/views/Event/show.html.twig b/Resources/views/Event/show.html.twig
index c97342528..c5af27003 100644
--- a/Resources/views/Event/show.html.twig
+++ b/Resources/views/Event/show.html.twig
@@ -34,11 +34,19 @@
{{ 'Participations'|trans }}
diff --git a/Resources/views/Participation/edit.html.twig b/Resources/views/Participation/edit.html.twig
index 004108a26..86b9422a2 100644
--- a/Resources/views/Participation/edit.html.twig
+++ b/Resources/views/Participation/edit.html.twig
@@ -28,8 +28,12 @@