Commit be2f2c2b authored by Nicolas Delaby's avatar Nicolas Delaby

All Form box use by default invisible css class

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31113 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9d9c75e6
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2002-2006 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 2002-2006 Nexedi SARL and Contributors. All Rights Reserved.
...@@ -86,6 +87,14 @@ class FormBoxWidget(Widget.Widget): ...@@ -86,6 +87,14 @@ class FormBoxWidget(Widget.Widget):
default="", default="",
required=0) 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): def render(self, field, key, value, REQUEST, render_prefix=None):
""" """
Render a form in a field Render a form in a field
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment