Ticket #11681: errorlist.diff

File errorlist.diff, 822 bytes (added by rlaager@…, 15 years ago)
  • django/contrib/admin/templates/admin/change_form.html

     
    3737    <p class="errornote">
    3838    {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
    3939    </p>
    40     <ul class="errorlist">{% for error in adminform.form.non_field_errors %}<li>{{ error }}</li>{% endfor %}</ul>
     40    {% for error in adminform.form.non_field_errors %}{% if forloop.first %}<ul class="errorlist">{% endif %}<li>{{ error }}</li>{% if forloop.last %}</ul>{% endif %}{% endfor %}
    4141{% endif %}
    4242
    4343{% for fieldset in adminform %}
Back to Top