{% extends base_template %} {%- block actions -%} {% include '@SonataAdmin/CRUD/action_buttons.html.twig' %}{%- endblock -%}{%- block tab_menu -%}{{ knp_menu_render(admin.sidemenu(action), { 'currentClass': 'active', 'template': get_global_template('tab_menu_template') }, 'twig') }}{%- endblock -%}{% block title %}{{ admin.isChild and admin.parent.subject ? 'title_edit'|trans({'%name%': admin.parent.toString(admin.parent.subject)|u.truncate(15, '...') }, 'SonataAdminBundle') : '' }}{% endblock %}{% block navbar_title %}{{ admin.isChild and admin.parent.subject ? 'title_edit'|trans({'%name%': admin.parent.toString(admin.parent.subject)|u.truncate(100, '...') }, 'SonataAdminBundle') : '' }}{% endblock %}{# Define the variable out of the block to prevent error if someone is overriding the list_table and not the list_footer #}{% set datagrid_has_results = admin.datagrid.results|length > 0 %}{% block list_table %}