From fabf23f1f029ae2d581463e3f719e26649b826cb Mon Sep 17 00:00:00 2001 From: nobohan Date: Fri, 29 Apr 2022 21:21:09 +0200 Subject: [PATCH] admin: add custom template for userjob edit --- .../DependencyInjection/ChillMainExtension.php | 1 + .../ChillMainBundle/Resources/views/UserJob/edit.html.twig | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 src/Bundle/ChillMainBundle/Resources/views/UserJob/edit.html.twig diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php b/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php index 62a3d80d8..067a910c8 100644 --- a/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php +++ b/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php @@ -313,6 +313,7 @@ class ChillMainExtension extends Extension implements ], 'edit' => [ 'role' => 'ROLE_ADMIN', + 'template' => '@ChillMain/UserJob/edit.html.twig', ], ], ], diff --git a/src/Bundle/ChillMainBundle/Resources/views/UserJob/edit.html.twig b/src/Bundle/ChillMainBundle/Resources/views/UserJob/edit.html.twig new file mode 100644 index 000000000..1160220a3 --- /dev/null +++ b/src/Bundle/ChillMainBundle/Resources/views/UserJob/edit.html.twig @@ -0,0 +1,7 @@ +{% extends '@ChillMain/CRUD/Admin/index.html.twig' %} + +{% block content -%} + {% embed '@ChillMain/CRUD/_edit_content.html.twig' %} + {% block content_form_actions_save_and_show %}{% endblock %} + {% endembed %} +{% endblock content %}