From de560b4d3bf159a7cb417118f905290f3d7f3038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 26 Mar 2020 13:15:42 +0100 Subject: [PATCH] [crud] add step delete --- CHANGELOG.md | 6 ++++++ CRUD/Controller/EntityPersonCRUDController.php | 2 ++ Resources/views/CRUD/delete.html.twig | 9 +++++++++ 3 files changed, 17 insertions(+) create mode 100644 Resources/views/CRUD/delete.html.twig diff --git a/CHANGELOG.md b/CHANGELOG.md index 73e743c02..279c3ac2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -79,3 +79,9 @@ Version 1.5.9 - [UI] set action button bottom of edit form according to crud template - [closing motive] add an hierarchy for closing motives ; - [closing motive] Add an admin section for closing motives ; + +Master branch +============= + +- [CRUD] add step delete + diff --git a/CRUD/Controller/EntityPersonCRUDController.php b/CRUD/Controller/EntityPersonCRUDController.php index 13ad62d54..c99ba0b9e 100644 --- a/CRUD/Controller/EntityPersonCRUDController.php +++ b/CRUD/Controller/EntityPersonCRUDController.php @@ -62,6 +62,8 @@ class EntityPersonCRUDController extends CRUDController return '@ChillPerson/CRUD/edit.html.twig'; case 'view': return '@ChillPerson/CRUD/view.html.twig'; + case 'delete': + return '@ChillPerson/CRUD/delete.html.twig'; default: return parent::getTemplateFor($action, $entity, $request); } diff --git a/Resources/views/CRUD/delete.html.twig b/Resources/views/CRUD/delete.html.twig new file mode 100644 index 000000000..ca132c3dd --- /dev/null +++ b/Resources/views/CRUD/delete.html.twig @@ -0,0 +1,9 @@ +{% extends '@ChillPerson/layout.html.twig' %} + +{% set person = entity.person %} +{% set activeRouteKey = '' %} + +{% block personcontent %} +{% embed '@ChillMain/CRUD/_delete_content.html.twig' %} +{% endembed %} +{% endblock %} \ No newline at end of file