From 725ad6ddbebde96013c9bb9735b05b7a38e745f0 Mon Sep 17 00:00:00 2001 From: Laetitia Getti Date: Tue, 20 Jun 2023 11:29:02 +0200 Subject: [PATCH] fixes on add item form and displayed quantities closes #81 --- .../order/templates/order/grouped_order_add_items.html | 8 ++++---- .../order/templates/order/grouped_order_detail.html | 9 +++++++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/la_chariotte/order/templates/order/grouped_order_add_items.html b/la_chariotte/order/templates/order/grouped_order_add_items.html index cc3a1dd..9590112 100644 --- a/la_chariotte/order/templates/order/grouped_order_add_items.html +++ b/la_chariotte/order/templates/order/grouped_order_add_items.html @@ -22,7 +22,7 @@ Nom Prix unitaire - Quantité max (optionnel) + Quantité disponible (optionnel) Action @@ -31,8 +31,8 @@
{% csrf_token %} - € - + € +
@@ -40,7 +40,7 @@ {{ item.name }} {{ item.price }} - {% if item.max_limit %}{{ item.max_limit }}{% else %}---{% endif %} + {% if item.max_limit is not null %}{{ item.max_limit }}{% else %}---{% endif %} {% if item.ordered_nb == 0 %}