Code

Ticket #15204: patch.diff

File patch.diff, 1.8 KB (added by prestontimmons, 3 years ago)
Line 
1diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
2index d63fc4d..3b19dda 100644
3--- a/docs/ref/forms/fields.txt
4+++ b/docs/ref/forms/fields.txt
5@@ -212,17 +212,17 @@ fields. We've specified ``auto_id=False`` to simplify the output::
6     ...     cc_myself = forms.BooleanField(required=False)
7     >>> f = HelpTextContactForm(auto_id=False)
8     >>> print f.as_table()
9-    <tr><th>Subject:</th><td><input type="text" name="subject" maxlength="100" /><br />100 characters max.</td></tr>
10+    <tr><th>Subject:</th><td><input type="text" name="subject" maxlength="100" /><br /><span class="helptext">100 characters max.</span></td></tr>
11     <tr><th>Message:</th><td><input type="text" name="message" /></td></tr>
12     <tr><th>Sender:</th><td><input type="text" name="sender" /><br />A valid e-mail address, please.</td></tr>
13     <tr><th>Cc myself:</th><td><input type="checkbox" name="cc_myself" /></td></tr>
14     >>> print f.as_ul()
15-    <li>Subject: <input type="text" name="subject" maxlength="100" /> 100 characters max.</li>
16+    <li>Subject: <input type="text" name="subject" maxlength="100" /> <span class="helptext">100 characters max.</span></li>
17     <li>Message: <input type="text" name="message" /></li>
18     <li>Sender: <input type="text" name="sender" /> A valid e-mail address, please.</li>
19     <li>Cc myself: <input type="checkbox" name="cc_myself" /></li>
20     >>> print f.as_p()
21-    <p>Subject: <input type="text" name="subject" maxlength="100" /> 100 characters max.</p>
22+    <p>Subject: <input type="text" name="subject" maxlength="100" /> <span class="helptext">100 characters max.</span></p>
23     <p>Message: <input type="text" name="message" /></p>
24     <p>Sender: <input type="text" name="sender" /> A valid e-mail address, please.</p>
25     <p>Cc myself: <input type="checkbox" name="cc_myself" /></p>