Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #15204 - Update form examples for rendering of the help_text; t…

…hanks prestontimmons.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3cdd6d898efc9488f4cd6b470b7c48b6a27c284c 1 parent 05e3bf4
Tim Graham authored February 02, 2011

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  docs/ref/forms/fields.txt
6  docs/ref/forms/fields.txt
@@ -212,17 +212,17 @@ fields. We've specified ``auto_id=False`` to simplify the output::
212 212
     ...     cc_myself = forms.BooleanField(required=False)
213 213
     >>> f = HelpTextContactForm(auto_id=False)
214 214
     >>> print f.as_table()
215  
-    <tr><th>Subject:</th><td><input type="text" name="subject" maxlength="100" /><br />100 characters max.</td></tr>
  215
+    <tr><th>Subject:</th><td><input type="text" name="subject" maxlength="100" /><br /><span class="helptext">100 characters max.</span></td></tr>
216 216
     <tr><th>Message:</th><td><input type="text" name="message" /></td></tr>
217 217
     <tr><th>Sender:</th><td><input type="text" name="sender" /><br />A valid e-mail address, please.</td></tr>
218 218
     <tr><th>Cc myself:</th><td><input type="checkbox" name="cc_myself" /></td></tr>
219 219
     >>> print f.as_ul()
220  
-    <li>Subject: <input type="text" name="subject" maxlength="100" /> 100 characters max.</li>
  220
+    <li>Subject: <input type="text" name="subject" maxlength="100" /> <span class="helptext">100 characters max.</span></li>
221 221
     <li>Message: <input type="text" name="message" /></li>
222 222
     <li>Sender: <input type="text" name="sender" /> A valid e-mail address, please.</li>
223 223
     <li>Cc myself: <input type="checkbox" name="cc_myself" /></li>
224 224
     >>> print f.as_p()
225  
-    <p>Subject: <input type="text" name="subject" maxlength="100" /> 100 characters max.</p>
  225
+    <p>Subject: <input type="text" name="subject" maxlength="100" /> <span class="helptext">100 characters max.</span></p>
226 226
     <p>Message: <input type="text" name="message" /></p>
227 227
     <p>Sender: <input type="text" name="sender" /> A valid e-mail address, please.</p>
228 228
     <p>Cc myself: <input type="checkbox" name="cc_myself" /></p>

0 notes on commit 3cdd6d8

Please sign in to comment.
Something went wrong with that request. Please try again.