plone.app.z3cform/1.0.x: Remove enableFormTabbing css class from forms

Fred van Dijk <jenkins-z4DKO/[email protected]> Tue, 01 Aug 2017 08:33:29 -0700 (PDT)
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: plone.app.z3cform
Branch: refs/heads/1.0.x
Date: 2017-08-01T17:33:16+02:00
Author: Fred van Dijk (fredvd) <[email protected]>
Commit: https://github.com/plone/plone.app.z3cform/commit/18eb25ae1d25bf3aba1d441ad8dc4519b2601ac2

Remove enableFormTabbing css class from forms
Since 1.0 this packages depends on plone.app.widgets's GS profile, so pat-autotoc should work. This allows you to still enable form_tabbing.js if other add'ons still depend on enableFormTabbing.

Files changed:
M CHANGES.rst
M plone/app/z3cform/templates/macros.pt

diff --git a/CHANGES.rst b/CHANGES.rst
index 83dea0a..6a0ceb8 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,6 +4,12 @@ Changelog
 1.0.2 (unreleased)
 ------------------
 
+- Remove enableFormTabbing css class from forms, since 1.0 this packages depends
+  on plone.app.widgets's GS profile, so pat-autotoc should work. This allows
+  you to still enable form_tabbing.js if other add'ons still depend on
+  enableFormTabbing.
+  [fredvd]
+
 - Fix inline-validation warning error
   [jbirdwell]
 
diff --git a/plone/app/z3cform/templates/macros.pt b/plone/app/z3cform/templates/macros.pt
index eda67cf..2f38ce3 100644
--- a/plone/app/z3cform/templates/macros.pt
+++ b/plone/app/z3cform/templates/macros.pt
@@ -59,7 +59,7 @@
                                   enable_unload_protection view/enable_unload_protection|python:True;
                                   unload_protection python:enable_unload_protection and 'enableUnloadProtection';
                                   has_groups python:bool(groups);
-                                  form_tabbing python:(has_groups and enable_form_tabbing) and 'enableFormTabbing pat-autotoc' or '';
+                                  form_tabbing python:(has_groups and enable_form_tabbing) and 'pat-autotoc' or '';
                                   show_default_label python:has_groups and default_fieldset_label and len(view.widgets);
                                   "
                       tal:attributes="action view/action|request/getURL;



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot