diff --git a/cms_form/models/cms_form_mixin.py b/cms_form/models/cms_form_mixin.py index 4e61324e..1595cb0c 100644 --- a/cms_form/models/cms_form_mixin.py +++ b/cms_form/models/cms_form_mixin.py @@ -161,6 +161,8 @@ class CMSFormMixin(models.AbstractModel): form_content_selector = fields.Char(form_tech=True, default=".form_content") # used to interpolate widgets' html field name form_fname_pattern = fields.Char(form_tech=True, default="") + # used enable submit confirmation at last step + form_confirm_submit = fields.Boolean(form_tech=True, default="") def _valid_field_parameter(self, field, name): res = super()._valid_field_parameter(field, name) @@ -738,3 +740,7 @@ def _form_info_merge(self, info, tomerge): you can use this method to merge them properly. """ return utils.data_merge(info, tomerge) + + @property + def form_msg_confirm_submit(self): + return _("Are you sure want to submit the form as it is?") diff --git a/cms_form/templates/form.xml b/cms_form/templates/form.xml index aaf123bf..cb3517fa 100644 --- a/cms_form/templates/form.xml +++ b/cms_form/templates/form.xml @@ -372,10 +372,12 @@ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). @@ -387,6 +389,53 @@ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). >Prev + + + + +