Julien Fastré 4c2ec6761a override relevant part of the main CRUD template
Add a person_id to every button in person crud templates
2020-06-18 16:40:22 +02:00

17 lines
511 B
Twig

{% extends '@ChillPerson/layout.html.twig' %}
{% set person = entity.person %}
{% set activeRouteKey = '' %}
{% block title %}
{% embed('@ChillPerson/CRUD/_new_title.html.twig') %}{% endembed %}
{% endblock %}
{% block personcontent %}
{% embed '@ChillPerson/CRUD/_new_content.html.twig' %}
{% block crud_content_header %}
<h1>{{ ('crud.'~crud_name~'.title_new')|trans({'%person%': person|chill_entity_render_string }) }}</h1>
{% endblock crud_content_header %}
{% endembed %}
{% endblock %}