Skip to content

Commit cff0a14

Browse files
author
Benedikt Artelt
committed
Update _modal.html.slim with later code changes
1 parent e10254c commit cff0a14

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

app/views/shared/_modal.html.slim

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
.modal-dialog.modal-dialog-centered.modal-dialog-scrollable class=size
99
.modal-content
1010
.modal-header
11-
h4#modal-title.modal-title = title
12-
button.btn-close data-bs-dismiss='modal' type='button'
13-
span.visually-hidden Close
14-
.modal-body
15-
- if local_assigns.has_key?(:body)
16-
= body
17-
- else
18-
= render(layout: false, locals: (local_assigns[:template_variables] || {}).merge(modal: true), template: template)
19-
.modal-footer
20-
div.footer-content
21-
= yield(:modal_footer)
22-
.col.d-none
23-
label.p-3.form-check-label[for="flexCheckChecked"]
24-
input#flexCheckChecked.form-check-input[type="checkbox" value="" unchecked]
25-
== t('exercises.implement.comment.doNotShowAgain')
11+
h4.modal-title#modal-title = title
12+
button.btn-close data-bs-dismiss='modal' aria-label=t('shared.close') type='button'
13+
span.visually-hidden = t('shared.close')
14+
15+
.modal-body *modal_body_attributes
16+
= render(layout: false, locals: (local_assigns[:template_variables] || {}).merge(modal: true), template:)
17+
18+
- if content_for? :modal_footer
19+
.modal-footer
20+
div.footer-content
21+
= clear_content_for :modal_footer
22+
.col.d-none
23+
label.p-3.form-check-label[for="flexCheckChecked"]
24+
input#flexCheckChecked.form-check-input[type="checkbox" value="" unchecked]
25+
== t('exercises.implement.comment.doNotShowAgain')

0 commit comments

Comments
 (0)