From 0bd2f2eb9882cf259c51e9e7b2c7dedc9d4daf4a Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sun, 23 Jun 2024 20:54:44 +0000 Subject: [PATCH] coupons cannot have 0 or negative numbers anymore. --- make_post_sell/static/css/common.css | 8 +- make_post_sell/templates/coupon_new.j2 | 22 +- .../templates/shop_location_form.j2 | 29 +- make_post_sell/views/coupon.py | 27 +- make_post_sell/views/shop_location.py | 247 +++++++++--------- 5 files changed, 178 insertions(+), 155 deletions(-) diff --git a/make_post_sell/static/css/common.css b/make_post_sell/static/css/common.css index 6e55a08..11a06b0 100644 --- a/make_post_sell/static/css/common.css +++ b/make_post_sell/static/css/common.css @@ -20,7 +20,13 @@ h1 { } label { - display: block; + display: block; + font-weight: bold; +} + +span.asterisk { + color: red; + font-weight: bold; } a { diff --git a/make_post_sell/templates/coupon_new.j2 b/make_post_sell/templates/coupon_new.j2 index d147997..b61dc2b 100644 --- a/make_post_sell/templates/coupon_new.j2 +++ b/make_post_sell/templates/coupon_new.j2 @@ -5,18 +5,6 @@ {% block content -%} - - -
@@ -26,14 +14,14 @@ label {

- * required + * required

- + The coupon code customers type during cart checkout.

- + This will appear on customer receipts and invoices.

- +
- + {{ "Edit" if location_id else "New" }} Shop Location - + * required + +
+
+ +
- +