[Erp5-report] r31113 nicolas - /erp5/trunk/products/ERP5Form/FormBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Dec 7 13:42:03 CET 2009
Author: nicolas
Date: Mon Dec 7 13:41:58 2009
New Revision: 31113
URL: http://svn.erp5.org?rev=31113&view=rev
Log:
All Form box use by default invisible css class
Modified:
erp5/trunk/products/ERP5Form/FormBox.py
Modified: erp5/trunk/products/ERP5Form/FormBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/FormBox.py?rev=31113&r1=31112&r2=31113&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/FormBox.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/FormBox.py [utf8] Mon Dec 7 13:41:58 2009
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2002-2006 Nexedi SARL and Contributors. All Rights Reserved.
@@ -86,6 +87,14 @@
default="",
required=0)
+ css_class = fields.StringField('css_class',
+ title='CSS class',
+ description=(
+ "The CSS class of the field. This can be used to style your "
+ "formulator fields using cascading style sheets. Not required."),
+ default="invisible",
+ required=0)
+
def render(self, field, key, value, REQUEST, render_prefix=None):
"""
Render a form in a field
More information about the Erp5-report
mailing list