Source

django-lfs / lfs / templates / manage / shipping_methods / shipping_method_prices.html

Diff from to

File lfs/templates/manage/shipping_methods/shipping_method_prices.html

 <h2>{% trans 'Prices' %}</h2>
 <form action="{% url lfs_manage_add_shipping_price shipping_method.id %}"
       method="post">
-    <input type="text" name="price" /> 
-    <input class="ajax-save-button button" 
-           type="submit" 
+    <input type="text" name="price" />
+    <input class="ajax-save-button button"
+           type="submit"
            value="{% trans 'Add price' %}" />
 </form>
 
     <h2 class="heading-middle">{% trans 'Existing prices' %}</h2>
     <form action="{% url lfs_manage_update_shipping_prices shipping_method.id %}"
           method="post">
-        <table>
+        <table class="criteria">
             <tr>
                 <th>
-                    <input type="checkbox" 
+                    <input type="checkbox"
                            class="select-all"
                            value="prices" />
                 </th>
                         <a href="{% url lfs_manage_shipping_price_criteria price.id %}"
                            class="ajax-link">
                            {% trans 'Edit criteria' %}
-                        </a>                        
+                        </a>
                     </div>
-                    {% for criterion_object in price.criteria_objects.all %}
+                    {% for criterion in price.get_criteria %}
                         <div style="padding-left:3px">
-                            {{ criterion_object.criterion }}
+                            {{ criterion }}
                         </div>
                     {% endfor %}
                 </td>
                     </div>
                 </td>
             </tr>
-        
+
         </table>
     </form>
-{% endif %}
+{% endif %}