Ticket #15204: patch.diff

File patch.diff, 1.8 KB (added by prestontimmons, 5 years ago)
  • docs/ref/forms/fields.txt

    diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
    index d63fc4d..3b19dda 100644
    a b fields. We've specified ``auto_id=False`` to simplify the output:: 
    212212    ...     cc_myself = forms.BooleanField(required=False)
    213213    >>> f = HelpTextContactForm(auto_id=False)
    214214    >>> 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>
    216216    <tr><th>Message:</th><td><input type="text" name="message" /></td></tr>
    217217    <tr><th>Sender:</th><td><input type="text" name="sender" /><br />A valid e-mail address, please.</td></tr>
    218218    <tr><th>Cc myself:</th><td><input type="checkbox" name="cc_myself" /></td></tr>
    219219    >>> 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>
    221221    <li>Message: <input type="text" name="message" /></li>
    222222    <li>Sender: <input type="text" name="sender" /> A valid e-mail address, please.</li>
    223223    <li>Cc myself: <input type="checkbox" name="cc_myself" /></li>
    224224    >>> 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>
    226226    <p>Message: <input type="text" name="message" /></p>
    227227    <p>Sender: <input type="text" name="sender" /> A valid e-mail address, please.</p>
    228228    <p>Cc myself: <input type="checkbox" name="cc_myself" /></p>
Back to Top