forked from cleverage/processuibundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBootstrapModal.html.twig
37 lines (35 loc) · 1.33 KB
/
BootstrapModal.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<div {{ attributes.defaults({
class: 'modal fade',
tabindex: '-1',
'aria-hidden': 'true',
id: id ? id : false,
}) }}
data-controller="bootstrap-modal"
>
<div class="modal-dialog">
<div class="modal-content">
{% block modal_full_content %}
{% if block('modal_header') %}
<div class="modal-header text-center">
{% block modal_header %}
<h5>{{ title }}</h5>
{% endblock %}
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
{% endif %}
<div class="modal-body">
{% block modal_body %}{{ message }}{% endblock %}
</div>
{% if block('modal_footer') %}
<div class="modal-footer">
{% block modal_footer %}
{% if null != confirmUrl %}
<a href="{{ confirmUrl }}"><button type="button" class="btn btn-primary">{{ 'Confirm'|trans }}</button></a>
{% endif %}
{% endblock %}
</div>
{% endif %}
{% endblock %}
</div>
</div>
</div>