CRUD: improve index view

This commit is contained in:
2020-06-11 15:58:31 +02:00
parent 278d7f5772
commit 937792fa2d
3 changed files with 70 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
{% extends '@ChillPerson/layout.html.twig' %}
{% set activeRouteKey = '' %}
{% block title %}{{ ('crud.' ~ crud_name ~ '.index.title')|trans({'%crud_name%': crud_name}) }}{% endblock %}
{% block personcontent %}
{% embed '@ChillMain/CRUD/_index.html.twig' %}
{% block add_new %}
<li>
<a href="{{ chill_path_add_return_path('chill_crud_' ~ crud_name ~ '_new', { 'person_id': person.id } ) }}" class="sc-button bt-new">{{ ('crud.'~crud_name~'.index.add_new')|trans( {'%crud_name%': crud_name} ) }}</a>
</li>
{% endblock %}
{% endembed %}
{% endblock personcontent %}