Skip to content

Commit

Permalink
adds an option for an additional footer
Browse files Browse the repository at this point in the history
  • Loading branch information
mavoIn committed Nov 15, 2024
1 parent cad3e66 commit 5aaf335
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions djangocms_frontend/contrib/modal/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class ModalContainerPlugin(mixin_factory("ModalContainer"), CMSUIPlugin):
("modal_centered"),
("modal_static", "modal_scrollable"),
("modal_size", "modal_fullscreen"),
("modal_footer"),
)
}
),
Expand Down
6 changes: 3 additions & 3 deletions djangocms_frontend/contrib/modal/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ class Meta:
help_text=_("If selected, the modal will not close when clicking outside of it."),
)

modal_footer = forms.BooleanField(
label=_("Footer"),
modal_footer = forms.BooleanField(
label=_("Footer and close button"),
required=False,
help_text=_("If selected, the modal will display a footer with a close button."),
help_text=_("If selected, the modal will show a modal footer with a close button."),
)

modal_scrollable = forms.BooleanField(
Expand Down

0 comments on commit 5aaf335

Please sign in to comment.