Commits

Kai Diefenbach committed e68c337

Fixed display of error indicator for packing_unit.

  • Participants
  • Parent commits e858908

Comments (0)

Files changed (1)

lfs/templates/manage/product/stock.html

       action="{% url lfs_save_product_stock product.id %}"
       method="post">
 
-    <fieldset>        
+    <fieldset>
         <legend>
             {% if product.is_variant %}{{ form.active_dimensions }}{% endif %}
             {% trans 'Dimension' %}
         </div>
 
     </fieldset>
-    <fieldset>        
+    <fieldset>
         <legend>{% trans "Packaging Unit" %}</legend>
         <div class="field">
             <div class="label">
                 {{ form.packing_unit.label_tag }}:
             </div>
 
-            {% if form.ordered_at.errors %}
+            {% if form.packing_unit.errors %}
                 <div class="error">
                     {{ form.packing_unit }}
                     {{ form.packing_unit.errors }}
                type="submit"
                value="{% trans 'Save stock' %}" />
     </div>
-</form>
+</form>