diff -r 24c4a0011078 -r 4c60652a3947 app/soc/views/helper/forms.py --- a/app/soc/views/helper/forms.py Sun Oct 19 21:08:08 2008 +0000 +++ b/app/soc/views/helper/forms.py Sun Oct 19 21:12:08 2008 +0000 @@ -74,6 +74,38 @@ self.fields[field_name].help_text = model_prop.help_text +class BaseForm(DbModelForm): + """Subclass of DbModelForm that extends as_table HTML output. + + BaseForm has additional class names in HTML tags for label and help text + and those can be used in CSS files for look customization. The way the Form + prints itself also has changed. Help text is displayed in the same row as + label and input. + """ + # TODO(pawel.solyga): Add class names for form errors and required fields. + + DEF_NORMAL_ROW = u'