action.html.twig 712 B

1234567891011121314151617181920212223242526272829
  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 actions %}
  9. <li>{% include 'SonataAdminBundle:Button:create_button.html.twig' %}</li>
  10. <li>{% include 'SonataAdminBundle:Button:list_button.html.twig' %}</li>
  11. {% endblock %}
  12. {% block tab_menu %}
  13. {% if action is defined %}
  14. {{ knp_menu_render(admin.sidemenu(action), {'currentClass' : 'active'}, 'list') }}
  15. {% endif %}
  16. {% endblock %}
  17. {% block content %}
  18. Redefine the content block in your action template
  19. {% endblock %}