Skip to content

Commit 5aaf335

Browse files
committed
adds an option for an additional footer
1 parent cad3e66 commit 5aaf335

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

djangocms_frontend/contrib/modal/cms_plugins.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class ModalContainerPlugin(mixin_factory("ModalContainer"), CMSUIPlugin):
8282
("modal_centered"),
8383
("modal_static", "modal_scrollable"),
8484
("modal_size", "modal_fullscreen"),
85+
("modal_footer"),
8586
)
8687
}
8788
),

djangocms_frontend/contrib/modal/forms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ class Meta:
115115
help_text=_("If selected, the modal will not close when clicking outside of it."),
116116
)
117117

118-
modal_footer = forms.BooleanField(
119-
label=_("Footer"),
118+
modal_footer = forms.BooleanField(
119+
label=_("Footer and close button"),
120120
required=False,
121-
help_text=_("If selected, the modal will display a footer with a close button."),
121+
help_text=_("If selected, the modal will show a modal footer with a close button."),
122122
)
123123

124124
modal_scrollable = forms.BooleanField(

0 commit comments

Comments
 (0)