base_edit.html.twig 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 admin.id(object) is not null %}
  10. {{ "title_edit"|trans({'%name%': admin.toString(object) }, 'SonataAdminBundle') }}
  11. {% else %}
  12. {{ "title_create"|trans({}, 'SonataAdminBundle') }}
  13. {% endif %}
  14. {% endblock%}
  15. {% block actions %}
  16. <div class="btn-group btn-group-justified sonata-actions">
  17. {% include 'SonataAdminBundle:Button:show_button.html.twig' %}
  18. {% include 'SonataAdminBundle:Button:history_button.html.twig' %}
  19. {% include 'SonataAdminBundle:Button:acl_button.html.twig' %}
  20. {% include 'SonataAdminBundle:Button:list_button.html.twig' %}
  21. {% include 'SonataAdminBundle:Button:create_button.html.twig' %}
  22. </div>
  23. {% endblock %}
  24. {% block tab_menu %}{{ knp_menu_render(admin.sidemenu(action), {'currentClass' : 'active'}, 'list') }}{% endblock %}
  25. {% use 'SonataAdminBundle:CRUD:base_edit_form.html.twig' with form as parentForm %}
  26. {% block form %}
  27. {{ block('parentForm') }}
  28. {% endblock %}