form_errors.html 357 B

123456789101112
  1. {% load i18n %}
  2. {% if form.non_field_errors or form.errors %}
  3. <div class="form-errors">
  4. {% for error in form.non_field_errors %}
  5. <div class="alert alert-danger non-field-error">{{ error }}</div>
  6. {% empty %}
  7. <div class="alert alert-danger field-error">{% trans "Please correct the errors below." %}</div>
  8. {% endfor %}
  9. </div>
  10. {% endif %}