diff --git a/copanier/static/app.css b/copanier/static/app.css index 210c37a..acbe252 100644 --- a/copanier/static/app.css +++ b/copanier/static/app.css @@ -271,10 +271,7 @@ select:focus { table { border-collapse: collapse; border-spacing: 0; - width: 100%; - table-layout: fixed; border-bottom: 1px solid #aaa; - overflow-x: auto; } tr { height: 30px; @@ -285,6 +282,7 @@ th { line-height: 1rem; vertical-align: middle; text-align: center; + white-space: nowrap; } td + td { border-left: 1px solid white; @@ -335,6 +333,7 @@ article.order { margin-right: auto; } table.order th.product { + min-width: 10rem; width: inherit; } td.with-input { @@ -343,6 +342,13 @@ td.with-input { td.with-input input { width: 100%; } +article.delivery { + width: 100%; + overflow-x: auto; +} +article.delivery th.person { + max-width: 7rem; +} hr { background-color: #dbdbdb; border: none; diff --git a/copanier/templates/delivery.html b/copanier/templates/delivery.html index 5af5923..32a1dbf 100644 --- a/copanier/templates/delivery.html +++ b/copanier/templates/delivery.html @@ -3,40 +3,42 @@ {% block body %}

{{ delivery.producer }} {% if delivery.is_open %}Ma commande{% endif %}

{% include "includes/delivery_head.html" %} - - - - - - - {% for email, order in delivery.orders.items() %} - +
+
RéférenceProduitPrix{{ email }}
+ + + + + + + {% for email, order in delivery.orders.items() %} + + {% endfor %} + + {% for product in delivery.products %} + + + + + + {% for email, order in delivery.orders.items() %} + {% if product.ref in order.products %} + + {% else %} + + {% endif %} + {% endfor %} + {% endfor %} - - - {% for product in delivery.products %} - - - - - {% for email, order in delivery.orders.items() %} - {% if product.ref in order.products %} - - {% else %} - - {% endif %} - {% endfor %} - - - {% endfor %} - - {% for email, order in delivery.orders.items() %} - - {% endfor %} - - - -
RéférenceProduitPrixTotal{{ email }}
{{ product.ref }}{{ product.name }}{{ product.price }} €{{ delivery.product_wanted(product) }}{{ order.products[product.ref].wanted }}
Total
{{ product.ref }}{{ product.name }}{{ product.price }} €{{ order.products[product.ref].wanted }}{{ delivery.product_wanted(product) }}
Total{{ order.total(delivery.products) }} €{{ delivery.total }} €
+ Total—— + {{ delivery.total }} € + {% for email, order in delivery.orders.items() %} + {{ order.total(delivery.products) }} € + {% endfor %} + + + +