Skip to content

Commit 764df8f

Browse files
committed
ezprotectedcontentbundle - Fix admin modal
Close button
1 parent 67d25a9 commit 764df8f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

bundle/Resources/views/themes/admin/tabs/protected_content.html.twig

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@
33
<div class="ibexa-table-header ">
44
<div class="ibexa-table-header__headline">{{ "tab.header.title"|trans }}</div>
55
<div>
6-
<button class="btn btn-primary ibexa-btn--prevented"
6+
<button class="btn ibexa-btn ibexa-btn--primary ibexa-btn--extra-actions ibexa-btn--create"
77
title="{{ "tab.modal.title"|trans }}"
88
data-toggle="modal"
99
data-target="#ibexa-modal--add-content-protection"
1010
data-bs-toggle="modal"
1111
data-bs-target="#ibexa-modal--add-content-protection"
1212
>
13-
<svg class="ibexa-icon ibexa-icon--tiny ibexa-icon-create">
14-
<use xlink:href="/bundles/ibexaicons/img/all-icons.svg#create"></use>
13+
<svg class="ibexa-icon ibexa-icon--small">
14+
<use xlink:href="{{ asset('bundles/ibexaicons/img/all-icons.svg') }}#create"></use>
1515
</svg>
16+
<span class="ibexa-btn__label">{{ "tab.modal.title"|trans }}</span>
1617
</button>
1718
<div class="modal fade ibexa-modal ibexa-modal--add-content-protection" id="ibexa-modal--add-content-protection" tabindex="-1" role="dialog">
1819
<div class="modal-dialog" role="document">
20+
{{ form_start(form, {action: path("novaezprotectedcontent_bundle_admin_handle_form", {locationId: location.id })}) }}
1921
<div class="modal-content">
20-
{{ form_start(form, {action: path("novaezprotectedcontent_bundle_admin_handle_form", {locationId: location.id })}) }}
2122
<div class="modal-header">
2223
<h3 class="modal-title">{{ "tab.modal.title"|trans }}</h3>
23-
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
24+
<button type="button" class="close" data-dismiss="modal" data-bs-dismiss="modal" aria-label="Close">
2425
<svg class="ibexa-icon ibexa-icon--medium" aria-hidden="true">
2526
<use xlink:href="/bundles/ibexaicons/img/all-icons.svg#discard"></use>
2627
</svg>
@@ -32,15 +33,15 @@
3233
{{ form_row(form.enabled) }}
3334
</div>
3435
<div class="modal-footer">
35-
<button type="button" class="btn btn-secondary btn--no" data-dismiss="modal">
36+
<button type="button" class="btn btn-secondary btn--no" data-dismiss="modal" data-bs-dismiss="modal">
3637
{{ "tab.modal.buttons.cancel"|trans }}
3738
</button>
3839
<button class="btn btn-danger font-weight-bold" type="submit">
3940
{{ "tab.modal.buttons.add"|trans }}
4041
</button>
4142
</div>
42-
{{ form_end(form) }}
4343
</div>
44+
{{ form_end(form) }}
4445
</div>
4546
</div>
4647
</div>

0 commit comments

Comments
 (0)