[form] `form-horizontal` must be the default form class for AutomaticEntityForm.cssclass (closes #3729630)

authorKatia Saurfelt <katia.saurfelt@logilab.fr>
changeset86fb6049ab24
branchstable
phasepublic
hiddenno
parent revision#b2d204351b86 [startup] use `col-md` classes everyvhere
child revision#fb3edec9b79b [forms] merge autforms.py into forms.py
files modified by this revision
views/forms.py
# HG changeset patch
# User Katia Saurfelt <katia.saurfelt@logilab.fr>
# Date 1397038717 -7200
# Wed Apr 09 12:18:37 2014 +0200
# Branch stable
# Node ID 86fb6049ab24c08f52d1beb864b1cf145c0c634b
# Parent b2d204351b860ed246c575e607b76aa19c9e9909
[form] `form-horizontal` must be the default form class for AutomaticEntityForm.cssclass (closes #3729630)

diff --git a/views/forms.py b/views/forms.py
@@ -6,8 +6,9 @@
1  """
2 
3  __docformat__ = "restructuredtext en"
4 
5  from cubicweb.web.views.forms import FieldsForm
6 +from cubicweb.web.views.autoform import AutomaticEntityForm
7 
8  FieldsForm.needs_css = ()
9 -FieldsForm.cssclass = 'form-horizontal'
10 +FieldsForm.cssclass = AutomaticEntityForm.cssclass = 'form-horizontal'