project/templates/_errors.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 16 Nov 2010 18:33:10 +0530
branchpayments
changeset 267 efdc1fa99ef7
parent 1 fda1c66b25f9
permissions -rw-r--r--
Convert multiple conditions to nested if in template since Django has a bug with conditionals in templates.

{% if messages %}<div id="messages">{% for message in messages %}{{ message }}{% endfor %}</div>{% endif %}
{% if form.errors %}<div id="errors">Please correct the errors below</div>{% endif %}