1. Kai Diefenbach
  2. django-lfstheme-0.6

Commits

Kai Diefenbach  committed 59db50d

Removed displaying of error fields from one page checkout for now.

  • Participants
  • Parent commits 2bd2d89
  • Branches default

Comments (0)

Files changed (3)

File lfstheme/static/css/main.css

View file
  • Ignore whitespace
     padding: 0.8em;
 }
 
-.my-addresses #form-error p,
-.checkout #form-error p {
-    padding-bottom: 0.8em;
-}
-
 /* Login / Register
 ___________________________________________________________________________ */
 

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

View file
  • Ignore whitespace
     {% if form.errors %}
         <div id="form-error" class="error">
             <p>{% blocktrans %}The operation could not be performed because one or more error(s) occurred.<br />Please resubmit the form after making the following changes:{% endblocktrans %}</p>
+<!--
             <ul>
                 {% 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 %}
                 	<li>{{ error }}</li>
                 {% endfor %}
             </ul>
+-->
         </div>
     {% endif %}
     <div>

File lfstheme/templates/lfs/customer/addresses.html

View file
  • Ignore whitespace
     {% if form.errors %}
         <div id="form-error" class="error">
             <p>{% blocktrans %}The operation could not be performed because one or more error(s) occurred.<br />Please resubmit the form after making the following changes:{% endblocktrans %}</p>
+<!--
             <ul>
                 {% 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 %}
             </ul>
+-->
         </div>
     {% endif %}
     <h1>{% trans 'Your addresses' %}</h1>