From ef4672ca15eecd06f4a077e673110ff021df29ba Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 25 Apr 2022 19:03:16 +0200 Subject: [PATCH] Highlight baskets missing payment method --- src/purchase/templates/purchase/basket_form.html | 3 +++ src/purchase/templates/purchase/basket_list.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/purchase/templates/purchase/basket_form.html b/src/purchase/templates/purchase/basket_form.html index ad72b4d..b84ef77 100644 --- a/src/purchase/templates/purchase/basket_form.html +++ b/src/purchase/templates/purchase/basket_form.html @@ -2,6 +2,9 @@ {% load crispy_forms_tags purchase %} {% block content %} {% if object %} + {% if not object.payment_method %} + + {% endif %}

{{ object }}

{{ object.created_at }}

{% else %} diff --git a/src/purchase/templates/purchase/basket_list.html b/src/purchase/templates/purchase/basket_list.html index 042d1ea..dd84f8d 100644 --- a/src/purchase/templates/purchase/basket_list.html +++ b/src/purchase/templates/purchase/basket_list.html @@ -5,7 +5,7 @@
{% for basket in baskets %}
-
+
Basket #{{ basket.id }}