mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
[crud] add step delete
This commit is contained in:
parent
048c83286b
commit
de560b4d3b
@ -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
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
9
Resources/views/CRUD/delete.html.twig
Normal file
9
Resources/views/CRUD/delete.html.twig
Normal 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 %}
|
Loading…
x
Reference in New Issue
Block a user