Commits

Maciej Wiśniowski committed 13ac3ce

changed address form display to use same style

Comments (0)

Files changed (2)

lfstheme/templates/lfs/customer/invoice_address_inline.html

                 {{ form.invoice_lastname }}
             </td>
 	    </tr>
-		{{ address_form.as_table }}
+        {% for field in address_form %}
+            <tr>
+                <td class="label">
+                    <label for="{{ field.id }}">{{ field.label_tag }}:</label>
+                </td>
+                <td>
+                    {{ field.errors }}
+                    {{ field }}
+                </td>
+            </tr>
+        {% endfor %}
 		{% if request.user.is_anonymous %}
 		    <tr>
 		        <td class="label">

lfstheme/templates/lfs/customer/shipping_address_inline.html

                 {{ form.shipping_lastname }}
             </td>
         </tr>
-        {{ address_form.as_table }}
+        {% for field in address_form %}
+            <tr>
+                <td class="label">
+                    <label for="{{ field.id }}">{{ field.label_tag }}:</label>
+                </td>
+                <td>
+                    {{ field.errors }}
+                    {{ field }}
+                </td>
+            </tr>
+        {% endfor %}
         {% if request.user.is_anonymous %}
            <tr>
                 <td class="label">