Added "unconditional" edit form's buttons interface
authorThierry Florac <thierry.florac@onf.fr>
Tue, 27 Jun 2017 13:30:32 +0200
changeset 53 cbc14b9e67af
parent 52 c78a1493697b
child 54 08ac02a87bcd
Added "unconditional" edit form's buttons interface
src/pyams_form/interfaces/form.py
--- a/src/pyams_form/interfaces/form.py	Fri Jun 09 09:57:28 2017 +0200
+++ b/src/pyams_form/interfaces/form.py	Tue Jun 27 13:30:32 2017 +0200
@@ -445,6 +445,13 @@
     submit = button.Button(name='submit', title=_("Submit"), condition=check_submit_button)
 
 
+class IUncheckedEditFormButtons(Interface):
+    """Unchecked edit form buttons"""
+
+    reset = ResetButton(name='reset', title=_("Reset"))
+    submit = button.Button(name='submit', title=_("Submit"))
+
+
 class IModalEditFormButtons(Interface):
     """Modal edit form buttons"""
 
@@ -452,6 +459,13 @@
     submit = button.Button(name='submit', title=_("Submit"), condition=check_submit_button)
 
 
+class IUncheckedModalEditFormButtons(Interface):
+    """Unchecked modal edit form buttons"""
+
+    close = CloseButton(name='close', title=_("Cancel"))
+    submit = button.Button(name='submit', title=_("Submit"))
+
+
 class IModalDisplayFormButtons(Interface):
     """Modal display form buttons"""