[crud] add step delete

This commit is contained in:
Julien Fastré 2020-03-26 13:15:42 +01:00
parent 048c83286b
commit de560b4d3b
3 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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 %}