diff --git a/copanier/static/app.css b/copanier/static/app.css index 66fce14..54ffd17 100644 --- a/copanier/static/app.css +++ b/copanier/static/app.css @@ -678,6 +678,11 @@ table.paiements tr:hover td { padding: 3rem !important; } +.center { + margin: auto; + text-align: center; +} + ul.actions { list-style-type: none; padding: 0px; diff --git a/copanier/templates/delivery/show_delivery.html b/copanier/templates/delivery/show_delivery.html index 6a07f7d..94fb77f 100644 --- a/copanier/templates/delivery/show_delivery.html +++ b/copanier/templates/delivery/show_delivery.html @@ -29,11 +29,6 @@ {% endif %} {% if request.user and request.user.is_staff %} - {% if delivery.is_archived %} -
  • -  Désarchiver -
  • - {% endif %}
  •  Modifier la distrib
  • @@ -47,6 +42,12 @@
    +{% if request['user'].email == delivery.contact %} +
    +Tu es la personne contact pour l'organisation de cette distribution, merci :-) Pour t'aider, tu peux accéder à + la boîte à outils ! +
    +{% endif %} {% if delivery.has_products %} {% for (id, producer) in delivery.get_producers_for_referent(request.user.email).items() %} {% if producer.needs_price_update(delivery) %} @@ -62,7 +63,6 @@ {% endif %} {% endfor %} {% include "includes/delivery_table.html" %} - {% else %}

    😔 Pour le moment, cette distribution est bien vide…