Skip to content

Instantly share code, notes, and snippets.

@marti1125
Created May 1, 2013 22:12
Show Gist options
  • Save marti1125/5498800 to your computer and use it in GitHub Desktop.
Save marti1125/5498800 to your computer and use it in GitHub Desktop.
error message
{% if (user_form.errors or profile_form.errors) %}
<div class="alert alert-error">
The following fields are required (optin is the checkbox in the last panel):
<ol>
{% for error in user_form.errors %}
<li>{{ error|escape }}</li>
{% endfor %}
{% for error in profile_form.errors %}
<li>{{ error|escape }}</li>
{% endfor %}
</ol>
</div>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment