Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #8426 - 'helptext' CSS class - hopefully for real this time.

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...
commit 10906fa75da9cacb110e4e414fa7c7ca93c188e0 1 parent b71f990
@spookylukey spookylukey authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/forms/forms.py
View
6 django/forms/forms.py
@@ -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>',
error_row = u'<tr><td colspan="2">%s</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)
def as_ul(self):
@@ -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>',
error_row = u'<li>%s</li>',
row_ender = '</li>',
- help_text_html = u' %s',
+ help_text_html = u' <span class="helptext">%s</span>',
errors_on_separate_row = False)
def as_p(self):
@@ -231,7 +231,7 @@ def as_p(self):
normal_row = u'<p%(html_class_attr)s>%(label)s %(field)s%(help_text)s</p>',
error_row = u'%s',
row_ender = '</p>',
- help_text_html = u' %s',
+ help_text_html = u' <span class="helptext">%s</span>',
errors_on_separate_row = True)
def non_field_errors(self):
Please sign in to comment.
Something went wrong with that request. Please try again.