forms.py 1.12 KB
Newer Older
1
# copyright 2013-2022 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
Nicola Spanti's avatar
Nicola Spanti committed
2
# contact https://www.logilab.fr/ -- mailto:contact@logilab.fr
Sylvain Thénault's avatar
Sylvain Thénault committed
3
4
5
6
7
8
9
10
11
12
13
14
#
# This program is free software: you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 2.1 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
Nicola Spanti's avatar
Nicola Spanti committed
15
# with this program. If not, see <https://www.gnu.org/licenses/>.
Sylvain Thénault's avatar
Sylvain Thénault committed
16
"""bootstrap implementation of forms"""
17
18
19

__docformat__ = "restructuredtext en"

20

21
from cubicweb.web.views.forms import FieldsForm
22
from cubicweb.web.views.autoform import AutomaticEntityForm
23

24
# Forms
25
FieldsForm.needs_js += ('cubes.bootstrap.edition.js',)
26
FieldsForm.needs_css = ()
27
FieldsForm.cssclass = AutomaticEntityForm.cssclass = 'form-horizontal'