Ticket #1644: doc_change.diff

File doc_change.diff, 958 bytes (added by clelland@…, 18 years ago)

Quick documentation patch

  • docs/forms.txt

     
    243243    <h1>Create a place:</h1>
    244244
    245245    {% if form.has_errors %}
    246     <h2>Please correct the following error{{ errors|pluralize }}:</h2>
     246    <h2>Please correct the following error{{ form.error_dict|pluralize }}:</h2>
    247247    {% endif %}
    248248
    249249    <form method="post" action=".">
     
    288288this gives each field an ``errors`` item (which is a list of error messages
    289289associated with the field) as well as a ``html_error_list`` item, which is a
    290290``<ul>`` of error messages. The above template uses these error items to
    291 display a simple error message next to each field.
     291display a simple error message next to each field. The error list is saved
     292as an ``error_dict`` attribute of the ``FormWrapper`` object.
    292293
    293294Using the ``ChangeManipulator``
    294295-------------------------------
Back to Top