mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
[wip] add actions to crud
This commit is contained in:
1
Resources/views/CRUD/_view_title.html.twig
Normal file
1
Resources/views/CRUD/_view_title.html.twig
Normal file
@@ -0,0 +1 @@
|
||||
{{ ('crud.' ~ crud_name ~ '.title_view')|trans({'%person%': person|chill_entity_render_string }) }}
|
16
Resources/views/CRUD/view.html.twig
Normal file
16
Resources/views/CRUD/view.html.twig
Normal file
@@ -0,0 +1,16 @@
|
||||
{% extends '@ChillPerson/layout.html.twig' %}
|
||||
|
||||
{% set person = entity.person %}
|
||||
{% set activeRouteKey = '' %}
|
||||
|
||||
{% block title %}
|
||||
{% include('@ChillPerson/CRUD/_view_title.html.twig') %}
|
||||
{% endblock %}
|
||||
|
||||
{% block personcontent %}
|
||||
{% embed '@ChillMain/CRUD/_view_content.html.twig' %}
|
||||
{% block crud_content_header %}
|
||||
<h1>{{ ('crud.' ~ crud_name ~ '.title_view')|trans({'%person%': person|chill_entity_render_string }) }}</h1>
|
||||
{% endblock crud_content_header %}
|
||||
{% endembed %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user