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" %}
-
-
-
- Référence |
- Produit |
- Prix |
- {% for email, order in delivery.orders.items() %}
- {{ email }} |
+
+
+
+
+ Référence |
+ Produit |
+ Prix |
+ Total |
+ {% for email, order in delivery.orders.items() %}
+ {{ email }} |
+ {% endfor %}
+
+ {% for product in delivery.products %}
+
+ {{ product.ref }} |
+ {{ product.name }} |
+ {{ product.price }} € |
+ {{ delivery.product_wanted(product) }} |
+ {% for email, order in delivery.orders.items() %}
+ {% if product.ref in order.products %}
+ {{ order.products[product.ref].wanted }} |
+ {% else %}
+ — |
+ {% endif %}
+ {% endfor %}
+
{% endfor %}
- Total |
-
- {% for product in delivery.products %}
-
- {{ product.ref }} |
- {{ product.name }} |
- {{ product.price }} € |
- {% for email, order in delivery.orders.items() %}
- {% if product.ref in order.products %}
- {{ order.products[product.ref].wanted }} |
- {% else %}
- — |
- {% endif %}
- {% endfor %}
- {{ delivery.product_wanted(product) }} |
-
- {% endfor %}
- Total | — | — |
- {% for email, order in delivery.orders.items() %}
- {{ order.total(delivery.products) }} € |
- {% endfor %}
- {{ delivery.total }} € |
-
-
-
+ Total | — | — |
+ {{ delivery.total }} € |
+ {% for email, order in delivery.orders.items() %}
+ {{ order.total(delivery.products) }} € |
+ {% endfor %}
+
+
+
+