web/views/autoform.py
changeset 10932 cb217b2b3463
parent 10669 155c29e0ed1c
child 11100 5758ba784ebd
--- a/web/views/autoform.py	Wed Nov 25 16:22:42 2015 +0100
+++ b/web/views/autoform.py	Wed Nov 25 18:31:48 2015 +0100
@@ -742,7 +742,8 @@
     copy_nav_params = True
     form_buttons = [fw.SubmitButton(),
                     fw.Button(stdmsgs.BUTTON_APPLY, cwaction='apply'),
-                    fw.Button(stdmsgs.BUTTON_CANCEL, cwaction='cancel')]
+                    fw.Button(stdmsgs.BUTTON_CANCEL,
+                              {'class': fw.Button.css_class + ' cwjs-edition-cancel'})]
     # for attributes selection when searching in uicfg.autoform_section
     formtype = 'main'
     # set this to a list of [(relation, role)] if you want to explictily tell