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