diff --git a/TODO b/TODO index d07455a..bd669d2 100644 --- a/TODO +++ b/TODO @@ -22,5 +22,4 @@ x Repasser sur les tests x Changer les liens d'emergement, de paiements et ???, trouver de meilleurs dénominations Faire un refactoring des modèles - Create an "url_for" utility to simplify URL management. \ No newline at end of file diff --git a/copanier/templates/base.html b/copanier/templates/base.html index 78032f9..1e7f18a 100644 --- a/copanier/templates/base.html +++ b/copanier/templates/base.html @@ -27,18 +27,18 @@

{{ config.SITE_NAME }}

diff --git a/copanier/templates/delivery/adjust_product.html b/copanier/templates/delivery/adjust_product.html index 63e0fcf..251866a 100644 --- a/copanier/templates/delivery/adjust_product.html +++ b/copanier/templates/delivery/adjust_product.html @@ -2,7 +2,7 @@ {% block body %}
-

{{ delivery.producer }} — Ajuster le produit «{{ product.name }}»

+

{{ delivery.producer }} — Ajuster le produit «{{ product.name }}»

Conditionnement {{ product.packing }} x {{ product.unit }}

Total commandé {{ delivery.product_wanted(product) }}

Manquant {{ delivery.product_missing(product) }}

diff --git a/copanier/templates/delivery/compute_balance.html b/copanier/templates/delivery/compute_balance.html index 398e2d4..3edd02d 100644 --- a/copanier/templates/delivery/compute_balance.html +++ b/copanier/templates/delivery/compute_balance.html @@ -5,7 +5,7 @@
diff --git a/copanier/templates/delivery/edit_delivery.html b/copanier/templates/delivery/edit_delivery.html index 7029f56..e2636c4 100644 --- a/copanier/templates/delivery/edit_delivery.html +++ b/copanier/templates/delivery/edit_delivery.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block toplink %}{% if delivery.id %}↶ Retourner à la distribution{% endif %}{% endblock %} +{% block toplink %}{% if delivery.id %}↶ Retourner à la distribution{% endif %}{% endblock %} {% block body %}
{% if delivery.id %} @@ -8,11 +8,11 @@
diff --git a/copanier/templates/delivery/list_deliveries.html b/copanier/templates/delivery/list_deliveries.html index fb2bdc4..22a2185 100644 --- a/copanier/templates/delivery/list_deliveries.html +++ b/copanier/templates/delivery/list_deliveries.html @@ -6,10 +6,10 @@
diff --git a/copanier/templates/delivery/place_order.html b/copanier/templates/delivery/place_order.html index bd7f6ce..d6e0770 100644 --- a/copanier/templates/delivery/place_order.html +++ b/copanier/templates/delivery/place_order.html @@ -57,7 +57,7 @@ {% endif %} {% if request.user.is_staff and delivery.status == delivery.CLOSED %} - Ajuster + Ajuster {% endif %}
diff --git a/copanier/templates/delivery/prepare_referent_email.html b/copanier/templates/delivery/prepare_referent_email.html index 4c61137..ba79004 100644 --- a/copanier/templates/delivery/prepare_referent_email.html +++ b/copanier/templates/delivery/prepare_referent_email.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% block toplink %}↶ Retourner à la boîte à outils{% endblock %} +{% block toplink %}↶ Retourner à la boîte à outils{% endblock %} {% block body %}

Envoi d'un mail aux référent⋅e⋅s

@@ -13,7 +13,7 @@ Bonjour, Et voilà, les commandes maintenant terminées, il est maintenant temps de passer à l'action ! En pièce-jointe, les informations pour les producteurs⋅rices dont tu est référent⋅e. -Tu peux aussi retrouver le doc à cette URL : https://{{ request.host }}/produits/{{ delivery.id }} +Tu peux aussi retrouver le doc à cette URL : https://{{ request.host }}{{ url_for('list_products', id=delivery.id) }} Rendez-vous pour la distribution, le {{ delivery.from_date|date }} de {{ delivery.from_date|time }} à {{ delivery.to_date|time }} à {{ delivery.where }}. diff --git a/copanier/templates/delivery/show_delivery.html b/copanier/templates/delivery/show_delivery.html index 3cb23d8..bd0665e 100644 --- a/copanier/templates/delivery/show_delivery.html +++ b/copanier/templates/delivery/show_delivery.html @@ -21,26 +21,26 @@
  •  Imprimer…
  • - {% if request['user'].email == delivery.contact and delivery.status > delivery.EMPTY %} -
  •  Boîte à outils
  • {% endif %} - {% if request.user and request.user.is_staff %} - {% if delivery.is_archived %} + {% if request['user'].email == delivery.contact and delivery.status > delivery.EMPTY %} +
  •  Boîte à outils
  • {% endif %} + {% if request.user and request.user.is_staff %} + {% if delivery.is_archived %}
  • -  Désarchiver +  Désarchiver
  • - {% endif %} + {% endif %}
  • -  Modifier la distrib +  Modifier la distrib
  • -  Produits +  Produits
  • - {% endif %} + {% endif %} @@ -54,7 +54,7 @@ {% if delivery.has_products %} {% for (id, producer) in delivery.get_producers_for_referent(request.user.email).items() %} {% if producer.needs_price_update(delivery) %} -

    Merci de mettre à jour les prix pour « {{ producer.name }} ».

    +

    Merci de mettre à jour les prix pour « {{ producer.name }} ».

    {% endif %} {% endfor %} {% include "includes/delivery_table.html" %} @@ -64,8 +64,8 @@ {% if request.user and request.user.is_staff %} Occupons-nous donc de ça ! Deux options :
      -
    1. Ajouter les product⋅eurs⋅rices à la main ;
    2. -
    3. Ou bien copier les produits d'une autre distribution.
    4. +
    5. Ajouter les product⋅eurs⋅rices à la main ;
    6. +
    7. Ou bien copier les produits d'une autre distribution.
    {% endif %} diff --git a/copanier/templates/delivery/show_toolbox.html b/copanier/templates/delivery/show_toolbox.html index 871367c..a4d4e01 100644 --- a/copanier/templates/delivery/show_toolbox.html +++ b/copanier/templates/delivery/show_toolbox.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% block toplink %}↶ Retourner à la distribution{% endblock %} +{% block toplink %}↶ Retourner à la distribution{% endblock %} {% block body %} @@ -46,19 +46,19 @@ Approvisionnements Du {{ delivery.dates.adjustment_deadline | date }} au {{ delivery.dates.delivery_date | date }} - Envoyer les infos de commande aux référent⋅e⋅s + Envoyer les infos de commande aux référent⋅e⋅s Faire les commandes aux producteurs⋅rices, récupérer les produits Préparation de la distribution La veille du {{ delivery.dates.delivery_date | date }} - Imprimer les bons de commandes par colocation + Imprimer les bons de commandes par colocation — Distribution {{ delivery.dates.delivery_date | date }} - Coordoner la distribution, faire la répartition des chèques + Coordoner la distribution, faire la répartition des chèques Arriver 30mn avant le début de la distribution, répartir les produits par coloc diff --git a/copanier/templates/includes/delivery_list.html b/copanier/templates/includes/delivery_list.html index 869900b..b5382c5 100644 --- a/copanier/templates/includes/delivery_list.html +++ b/copanier/templates/includes/delivery_list.html @@ -2,7 +2,7 @@