From 260ce8ba1750e00ca5fdbcf87073480011cf6b69 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Mon, 28 Feb 2022 14:43:24 +0100 Subject: [PATCH] issue 463: add delete button on draft periods page --- CHANGELOG.md | 1 + .../AccompanyingPeriod/user_draft_periods_list.html.twig | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ec146ea7..69137f346 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to * [person] Order social issues by the field "ordering" (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/388) * [Person/Household list] when listing other simultaneous members of an household, exclude the members on person, not on members (avoid to show two membersship with the same person) +* [draft periods] add a delete button (if acl granted) on each draft period listed on draft period page (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/463) ## Test releases diff --git a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/user_draft_periods_list.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/user_draft_periods_list.html.twig index 33317d51d..d7bd8eea6 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/user_draft_periods_list.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/AccompanyingPeriod/user_draft_periods_list.html.twig @@ -5,6 +5,12 @@ {% block title %}{{ 'My accompanying periods in draft'|trans }}{% endblock title %} {% macro recordAction(period) %} + {% if is_granted('CHILL_PERSON_ACCOMPANYING_PERIOD_DELETE', period) %} +
  • + +
  • + {% endif %}