您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

75 行
3.4KB

  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(), title: ea.getEntity().getInstance()})|raw }}
  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 type, messageList in warning_message_list %}
  29. {% if messageList|length >0 %}
  30. <div class="alert alert-{{ type }}">
  31. {% if type =='danger' %}
  32. <h5><i class="icon fas fa-ban"></i> Suppresion impossible</h5>
  33. {% elseif type =='warning' %}
  34. <h5><i class="icon fas fa-exclamation-triangle"></i> À vérifier avant
  35. suppression</h5>
  36. {% elseif type =='info' %}
  37. <h5><i class="icon fas fa-info"></i> Élements qui seront supprimés</h5>
  38. {% endif %}
  39. {% for message in messageList %}
  40. <p>{{ message|raw }}</p>
  41. {% endfor %}
  42. </div>
  43. {% endif %}
  44. {% endfor %}
  45. {% endblock %}
  46. </div>
  47. {% endblock %}
  48. {% block card_footer_wrapper %}
  49. <div class="card-footer">
  50. <div class="row">
  51. {% block delete_form %}
  52. {% form_theme confirm_delete_user_form '@LcSov/adminlte/crud/form_theme.html.twig' %}
  53. {{ form_start(confirm_delete_user_form) }}
  54. <input type="hidden" name="token" value="{{ csrf_token('ea-delete') }}"/>
  55. {{ form_end(confirm_delete_user_form) }}
  56. {% endblock delete_form %}
  57. </div>
  58. </div>
  59. {% endblock %}
  60. </div>
  61. {% endblock card_wrapper %}
  62. </div>
  63. {% block main_append %}{% endblock %}
  64. {% endblock main %}