You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.6KB

  1. {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
  2. {# @var entities \EasyCorp\Bundle\EasyAdminBundle\Collection\EntityDtoCollection #}
  3. {# @var paginator \EasyCorp\Bundle\EasyAdminBundle\Orm\EntityPaginator #}
  4. {% extends ea.templatePath('layout') %}
  5. {% trans_default_domain ea.i18n.translationDomain %}
  6. {% block content_title %}
  7. {{ 'delete'|sov_trans_admin_title(translation_entity_name, {id: ea.getEntity().getInstance().getId()}) }}
  8. {% endblock %}
  9. {% block content_breadcrumb %}
  10. {{ include('@LcSov/adminlte/block/breadcrumb.html.twig') }}
  11. {% endblock content_breadcrumb %}
  12. {% block page_actions %}
  13. {% endblock page_actions %}
  14. {% block main %}
  15. {% block main_prepend %}{% endblock %}
  16. <div class="col-12" id="{% block detail_id %}{% endblock detail_id %}">
  17. {% block card_wrapper %}
  18. <div class="card card-outline card-primary">
  19. {% block card_header_wrapper %}
  20. <div class="card-header">
  21. <div class="btn-list float-sm-right">
  22. </div>
  23. </div>
  24. {% endblock %}
  25. {% block card_body_wrapper %}
  26. <div class="card-body">
  27. {% block detail_fields %}
  28. {% for entity_fqcn, entity_actions in entities_delete %}
  29. <div class="callout callout-danger">
  30. <h5>{{ entity_fqcn }}</h5>
  31. {% for action, entity_field_list in entity_actions %}
  32. {% for field, entity_list in entity_field_list %}
  33. <p>{{ entity_list|length }} entités à {{ action }} sur le champ {{ field }}</p>
  34. {% endfor %}
  35. {% endfor %}
  36. </div>
  37. {% endfor %}
  38. {% endblock %}
  39. </div>
  40. {% endblock %}
  41. {% block card_footer_wrapper %}
  42. <div class="card-footer">
  43. <div class="row">
  44. {# {% block delete_form %} #}
  45. {# {{ include('@EasyAdmin/crud/includes/_delete_form.html.twig', { entity_id: entity.primaryKeyValue }, with_context = false) }} #}
  46. {# {% endblock delete_form %} #}
  47. </div>
  48. </div>
  49. {% endblock %}
  50. </div>
  51. {% endblock card_wrapper %}
  52. </div>
  53. {% block main_append %}{% endblock %}
  54. {% endblock main %}