From 6109520c95ad6c2567a962ed04dc92cf0d2585bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 14 Jan 2020 22:45:17 +0100 Subject: [PATCH] add block for bottom action buttons --- Resources/views/CRUD/_edit_content.html.twig | 2 ++ Resources/views/CRUD/_view_content.html.twig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Resources/views/CRUD/_edit_content.html.twig b/Resources/views/CRUD/_edit_content.html.twig index 0ede64748..ce8aa87c4 100644 --- a/Resources/views/CRUD/_edit_content.html.twig +++ b/Resources/views/CRUD/_edit_content.html.twig @@ -21,6 +21,7 @@ {% endblock %} + {% block content_form_actions_before %}{% endblock %} {% block content_form_actions_view %} {% if is_granted(chill_crud_config('role', crud_name, 'view'), entity) %}
  • @@ -44,6 +45,7 @@
  • {% endblock %} + {% block content_form_actions_after %}{% endblock %} {% endblock %} diff --git a/Resources/views/CRUD/_view_content.html.twig b/Resources/views/CRUD/_view_content.html.twig index 39cf85359..53d205cb0 100644 --- a/Resources/views/CRUD/_view_content.html.twig +++ b/Resources/views/CRUD/_view_content.html.twig @@ -21,6 +21,7 @@ {% endblock %} + {% block content_view_actions_before %}{% endblock %} {% block content_view_actions_duplicate_link %} {% if is_granted(chill_crud_config('role', crud_name, 'new'), entity) %}
  • @@ -39,6 +40,7 @@
  • {% endif %} {% endblock content_view_actions_edit_link %} + {% block content_view_actions_after %}{% endblock %} {% endblock crud_content_view_actions %}