Ticket #11681: errorlist.diff
File errorlist.diff, 822 bytes (added by , 15 years ago) |
---|
-
django/contrib/admin/templates/admin/change_form.html
37 37 <p class="errornote"> 38 38 {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} 39 39 </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 %} 41 41 {% endif %} 42 42 43 43 {% for fieldset in adminform %}