vendor/sonata-project/admin-bundle/src/Resources/views/CRUD/base_edit.html.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of the Sonata package.
  3. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. {% extends base_template %}
  8. {% block title %}
  9.     {% if objectId is not null %}
  10.         {{ 'title_edit'|trans({'%name%': admin.toString(object)|u.truncate(15, '...') }, 'SonataAdminBundle') }}
  11.     {% else %}
  12.         {{ 'title_create'|trans({}, 'SonataAdminBundle')|u.truncate(15, '...') }}
  13.     {% endif %}
  14. {% endblock %}
  15. {% block navbar_title %}
  16.     {% if objectId is not null %}
  17.         {{ 'title_edit'|trans({'%name%': admin.toString(object)|u.truncate(100, '...') }, 'SonataAdminBundle') }}
  18.     {% else %}
  19.         {{ 'title_create'|trans({}, 'SonataAdminBundle')|u.truncate(100, '...') }}
  20.     {% endif %}
  21. {% endblock %}
  22. {%- block actions -%}
  23.     {% include '@SonataAdmin/CRUD/action_buttons.html.twig' %}
  24. {%- endblock -%}
  25. {%- block tab_menu -%}
  26.     {{ knp_menu_render(admin.sidemenu(action), {
  27.         'currentClass': 'active',
  28.         'template': get_global_template('tab_menu_template')
  29.     }, 'twig') }}
  30. {%- endblock -%}
  31. {% use '@SonataAdmin/CRUD/base_edit_form.html.twig' with form as parentForm %}
  32. {% block form %}
  33.     {{ block('parentForm') }}
  34. {% endblock %}