CRUD new action

This commit is contained in:
2019-12-05 22:57:15 +01:00
parent 98b491063c
commit 90ffb7cf7a
4 changed files with 91 additions and 1 deletions

View File

@@ -0,0 +1 @@
{{ ('crud.' ~ crud_name ~ '.title_new')|trans({'%person%': person|chill_entity_render_string }) }}

View File

@@ -0,0 +1,16 @@
{% 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 '@ChillMain/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 %}