Skip to content

Commit

Permalink
Fixed #8426 - 'helptext' CSS class - hopefully for real this time.
Browse files Browse the repository at this point in the history
This file was missing from [13519]

Thanks to mattmcc for the catch.



git-svn-id: http://code.djangoproject.com/svn/django/trunk@13522 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
spookylukey committed Aug 7, 2010
1 parent b71f990 commit 10906fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django/forms/forms.py
Expand Up @@ -213,7 +213,7 @@ def as_table(self):
normal_row = u'<tr%(html_class_attr)s><th>%(label)s</th><td>%(errors)s%(field)s%(help_text)s</td></tr>', normal_row = u'<tr%(html_class_attr)s><th>%(label)s</th><td>%(errors)s%(field)s%(help_text)s</td></tr>',
error_row = u'<tr><td colspan="2">%s</td></tr>', error_row = u'<tr><td colspan="2">%s</td></tr>',
row_ender = u'</td></tr>', row_ender = u'</td></tr>',
help_text_html = u'<br />%s', help_text_html = u'<br /><span class="helptext">%s</span>',
errors_on_separate_row = False) errors_on_separate_row = False)


def as_ul(self): def as_ul(self):
Expand All @@ -222,7 +222,7 @@ def as_ul(self):
normal_row = u'<li%(html_class_attr)s>%(errors)s%(label)s %(field)s%(help_text)s</li>', normal_row = u'<li%(html_class_attr)s>%(errors)s%(label)s %(field)s%(help_text)s</li>',
error_row = u'<li>%s</li>', error_row = u'<li>%s</li>',
row_ender = '</li>', row_ender = '</li>',
help_text_html = u' %s', help_text_html = u' <span class="helptext">%s</span>',
errors_on_separate_row = False) errors_on_separate_row = False)


def as_p(self): def as_p(self):
Expand All @@ -231,7 +231,7 @@ def as_p(self):
normal_row = u'<p%(html_class_attr)s>%(label)s %(field)s%(help_text)s</p>', normal_row = u'<p%(html_class_attr)s>%(label)s %(field)s%(help_text)s</p>',
error_row = u'%s', error_row = u'%s',
row_ender = '</p>', row_ender = '</p>',
help_text_html = u' %s', help_text_html = u' <span class="helptext">%s</span>',
errors_on_separate_row = True) errors_on_separate_row = True)


def non_field_errors(self): def non_field_errors(self):
Expand Down

0 comments on commit 10906fa

Please sign in to comment.