batch_confirmation.html.twig 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. <div class="sonata-actions">
  10. <ul>
  11. {% if admin.hasRoute('list') and admin.isGranted('LIST')%}
  12. <li class="sonata-action-element"><a href="{{ admin.generateUrl('list') }}">{% trans from 'SonataAdminBundle' %}link_action_list{% endtrans %}</a></li>
  13. {% endif %}
  14. {% if admin.hasRoute('create') and admin.isGranted('CREATE')%}
  15. <li class="sonata-action-element"><a href="{{ admin.generateUrl('create') }}">{% trans from 'SonataAdminBundle' %}link_action_create{% endtrans %}</a></li>
  16. {% endif %}
  17. </ul>
  18. </div>
  19. {% endblock %}
  20. {% block side_menu %}{{ admin.sidemenu(action)|knp_menu_render('list') }}{% endblock %}
  21. {% block content %}
  22. <div class="sonata-ba-delete">
  23. <h1>{% trans from 'SonataAdminBundle' %}title_batch_confirmation{% endtrans %}</h1>
  24. {% trans from 'SonataAdminBundle' %}message_batch_confirmation{% endtrans %}
  25. <form action="{{ admin.generateUrl('batch', admin.filterParameters) }}" method="POST" >
  26. <input type="hidden" name="confirmation" value="ok" />
  27. <input type="hidden" name="data" value="{{ data }}" />
  28. <div style="display: none">
  29. {{ form_rest(form) }}
  30. </div>
  31. <input type="submit" value="{% trans from 'SonataAdminBundle' %}btn_execute_batch_action{% endtrans %}" />
  32. </form>
  33. </div>
  34. {% endblock %}