select_subclass.html.twig 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 %}{{ 'title_select_subclass'|trans({}, 'SonataAdminBundle') }}{% endblock %}
  9. {% block content %}
  10. <div class="box box-success">
  11. <div class="box-header">
  12. <h3 class="box-title">
  13. {{ block('title') }}
  14. </h3>
  15. </div>
  16. <div class="box-body">
  17. {% for subclass in admin.subclasses|keys %}
  18. <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">
  19. <a href="{{ admin.generateUrl(action, {'subclass': subclass }) }}"
  20. class="btn btn-app btn-block"
  21. >
  22. <i class="fa fa-plus-square" aria-hidden="true"></i>
  23. {{ subclass|trans({}, admin.translationdomain|default('SonataAdminBundle')) }}
  24. </a>
  25. </div>
  26. {% else %}
  27. <span class="alert alert-info">{{ 'no_subclass_available'|trans({}, 'SonataAdminBundle') }}</span>
  28. {% endfor %}
  29. <div class="clearfix"></div>
  30. </div>
  31. </div>
  32. {% endblock %}