From 10cd9cf0c53080fcfe79d28b69b86f67d59cdbac Mon Sep 17 00:00:00 2001 From: Nathan Chapman Date: Tue, 1 Aug 2023 22:21:16 -0600 Subject: [PATCH] Update form --- static/styles/main.css | 5 +++ .../templates/storefront/wholesale_order.html | 2 +- .../wholesale_order_create_form.html | 38 ++++++++++--------- 3 files changed, 27 insertions(+), 18 deletions(-) diff --git a/static/styles/main.css b/static/styles/main.css index 3deccbd..1d2db15 100644 --- a/static/styles/main.css +++ b/static/styles/main.css @@ -1141,3 +1141,8 @@ footer > section { grid-template-columns: repeat(2, 1fr); gap: 3rem; } +.wholesale-field { + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 0.5rem; +} diff --git a/storefront/templates/storefront/wholesale_order.html b/storefront/templates/storefront/wholesale_order.html index 83052a6..dc97cce 100644 --- a/storefront/templates/storefront/wholesale_order.html +++ b/storefront/templates/storefront/wholesale_order.html @@ -27,7 +27,7 @@

I'm already a wholesale customer

-

If you are already a wholesale customer, please login and return to this page to place an order.

+

If you are already a wholesale customer, please login and return to this page to place an order.

{% endif %} diff --git a/storefront/templates/storefront/wholesale_order_create_form.html b/storefront/templates/storefront/wholesale_order_create_form.html index 99fe83a..2d39111 100644 --- a/storefront/templates/storefront/wholesale_order_create_form.html +++ b/storefront/templates/storefront/wholesale_order_create_form.html @@ -8,23 +8,27 @@
{% csrf_token %} - - - - - - - {{ form.as_table }} - - - - - - - -
Product16 oz Qty / 5 lb Qty
- -
+
+
+ Product + 16 oz. + 5 lb. + +
+ {% for field in form %} +
+ {{ field.label_tag }} + {{ field }} +
+ {{ field.errors }} + {% if field.help_text %} +

{{ field.help_text|safe }}

+ {% endif %} +
+
+ {% endfor %} +
+