-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: mikolaj <[email protected]>
- Loading branch information
1 parent
a34c813
commit 1ce04f0
Showing
3 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/bundle/Resources/views/themes/admin/ui/modal/delete_confirmation.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% set confirm_button_rendered %} | ||
{%- block confirm_button -%} | ||
<button | ||
class="btn ibexa-btn ibexa-btn--primary ibexa-btn--trigger" | ||
data-click="{{ data_click }}" | ||
> | ||
{{ 'modal.delete'|trans|desc('Delete') }} | ||
</button> | ||
{% endblock %} | ||
{% endset %} | ||
|
||
{% set cancel_button_rendered %} | ||
{%- block cancel_button -%} | ||
<button | ||
type="button" | ||
class="btn ibexa-btn ibexa-btn--secondary" | ||
data-bs-dismiss="modal" | ||
> | ||
{{ 'modal.cancel'|trans|desc('Cancel') }} | ||
</button> | ||
{% endblock %} | ||
{% endset %} | ||
|
||
{% embed '@ibexadesign/ui/component/modal/modal.html.twig' with { | ||
no_header: true, | ||
id, | ||
} %} | ||
{% block body_content %} | ||
{{ message }} | ||
{% endblock %} | ||
{% block footer_content %} | ||
{{ confirm_button_rendered }} | ||
{{ cancel_button_rendered }} | ||
{% endblock %} | ||
{% endembed %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters