Added default value for form's submit button label
authorThierry Florac <tflorac@ulthar.net>
Fri, 04 Oct 2019 13:53:56 +0200
changeset 1363 4518951655df
parent 1362 60f8b160341c
child 1364 a2a0487968a2
Added default value for form's submit button label
src/pyams_content/shared/form/__init__.py
--- a/src/pyams_content/shared/form/__init__.py	Fri Oct 04 13:52:07 2019 +0200
+++ b/src/pyams_content/shared/form/__init__.py	Fri Oct 04 13:53:56 2019 +0200
@@ -53,6 +53,13 @@
     rgpd_warning = FieldProperty(IWfForm['rgpd_warning'])
     rgpd_user_rights = FieldProperty(IWfForm['rgpd_user_rights'])
 
+    def __init__(self):
+        super(WfForm, self).__init__()
+        self.submit_label = {
+            'en': "Submit",
+            'fr': "Envoyer"
+        }
+
     @property
     def handler(self):
         return self._handler