Added notice on submit message
authorThierry Florac <tflorac@ulthar.net>
Fri, 04 Oct 2019 13:52:07 +0200
changeset 1362 60f8b160341c
parent 1361 53541532b673
child 1363 4518951655df
Added notice on submit message
src/pyams_content/shared/form/zmi/properties.py
--- a/src/pyams_content/shared/form/zmi/properties.py	Thu Oct 03 14:56:57 2019 +0200
+++ b/src/pyams_content/shared/form/zmi/properties.py	Fri Oct 04 13:52:07 2019 +0200
@@ -70,6 +70,12 @@
         super(FormPropertiesInnerEditForm, self).updateWidgets(prefix)
         if self.mode == INPUT_MODE:
             translate = self.request.localizer.translate
+            if 'submit_message' in self.widgets:
+                self.widgets['submit_message'].after_widget_notice = \
+                    '<div class="alert-info padding-5">{0}</div>'.format(
+                        translate(_("Text samples:<br />"
+                                    "- Thank you for taking contact with us, your message has been "
+                                    "transmitted.")))
             if 'rgpd_warning' in self.widgets:
                 self.widgets['rgpd_warning'].after_widget_notice = \
                     '<div class="alert-info padding-5">{0}</div>'.format(