Commits

mickt  committed 2bd2d89

show non field errors on the one page checkout form

  • Participants
  • Parent commits 7ac22cc

Comments (0)

Files changed (1)

File lfstheme/templates/lfs/checkout/one_page_checkout.html

                 {% for field in form %}
                     {% if field.errors %}<li><a href="javascript:void(0);" onclick="$('#id_{{ field.name }}').focus();">{{field.label}}</a> - {{ field.errors|striptags }}</li>{% endif %}
                 {% endfor %}
+                {% for error in form.non_field_errors %}
+                	<li>{{ error }}</li>
+                {% endfor %}
             </ul>
         </div>
     {% endif %}