Explicit "ajust" button in delivery page

This commit is contained in:
Yohan Boniface 2019-04-16 21:07:25 +02:00
parent 5deae74c9a
commit 0c2e2f5444
2 changed files with 4 additions and 3 deletions

View file

@ -374,7 +374,9 @@ th.missing {
background-color: #db7734;
}
.missing a {
color: #ddd;
color: #f1f1f1;
border-color: #f1f1f1;
height: 1rem;
}
hr {
background-color: #dbdbdb;

View file

@ -36,9 +36,8 @@
{% endif %}
<th{% if delivery.status == delivery.ADJUSTMENT and delivery.product_missing(product) %} class="missing" title="Les commandes individuelles ne correspondent pas aux conditionnements"{% endif %}>
{{ delivery.product_wanted(product) }}
{% if request.user.is_staff %}<a href="/livraison/{{ delivery.id }}/ajuster/{{ product.ref }}">{% endif %}
{% if delivery.status == delivery.ADJUSTMENT and delivery.product_missing(product) %} ({{ delivery.product_missing(product) }})
{% if request.user.is_staff %}</a>{% endif %}
{% if request.user.is_staff %}<a href="/livraison/{{ delivery.id }}/ajuster/{{ product.ref }}" class="button" title="ajuster le produit">ajuster</a>{% endif %}
{% endif %}
</th>
{% for email, order in delivery.orders.items() %}