From 0ba6dfcc45d6c9cd3ed682907a3f30fdbd16abe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Wed, 7 Apr 2021 21:19:13 +0200 Subject: [PATCH] Add missing file --- copanier/static/app.css | 3 ++- copanier/templates/includes/delivery_progress.html | 10 ++++++++++ copanier/templates/includes/order_summary.html | 5 +++-- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 copanier/templates/includes/delivery_progress.html diff --git a/copanier/static/app.css b/copanier/static/app.css index bd04af8..c0f4cd2 100644 --- a/copanier/static/app.css +++ b/copanier/static/app.css @@ -566,7 +566,8 @@ details summary { } .rupture { - background-color: #ff000083; + background-color: #ff000083 !important; + text-decoration: line-through; } .list-emails { diff --git a/copanier/templates/includes/delivery_progress.html b/copanier/templates/includes/delivery_progress.html new file mode 100644 index 0000000..af4d04d --- /dev/null +++ b/copanier/templates/includes/delivery_progress.html @@ -0,0 +1,10 @@ + +
\ No newline at end of file diff --git a/copanier/templates/includes/order_summary.html b/copanier/templates/includes/order_summary.html index d7554a7..efd1581 100644 --- a/copanier/templates/includes/order_summary.html +++ b/copanier/templates/includes/order_summary.html @@ -2,10 +2,11 @@ Produit{% if display_prices %}Prix unitaire{% endif %}Quantité {% for product in delivery.products %} {% if order[product].quantity %} - - {{ product }} + + {{ product }}{% if product.rupture %} (rupture){% endif %} {% if display_prices %}{{ product.price | round(2) }} €{% endif %}{{ order[product].quantity }} x {{ product.unit }} + {% if product.rupture %}{% endif %} {% endif %} {% endfor %}