From ff79712fb557a09b94768f0d01145e39807bdb0e Mon Sep 17 00:00:00 2001 From: Alexis M Date: Fri, 27 Sep 2019 16:56:47 +0200 Subject: [PATCH] Remove useless (for us) links. --- copanier/__init__.py | 5 ----- copanier/templates/delivery.html | 17 +---------------- .../templates/includes/modal_add_command.html | 2 +- 3 files changed, 2 insertions(+), 22 deletions(-) diff --git a/copanier/__init__.py b/copanier/__init__.py index 3c307b4..b39f108 100644 --- a/copanier/__init__.py +++ b/copanier/__init__.py @@ -317,9 +317,6 @@ async def create_delivery(request, response): response.redirect = f"/livraison/{delivery.id}" - - - @app.route("/livraison/{id}/importer/produits", methods=["POST"]) @staff_only async def import_products(request, response, id): @@ -587,8 +584,6 @@ async def delivery_balance(request, response, id): for debiter, amount, crediter in results: results_dict[debiter][crediter] = amount - # from pdb import set_trace; set_trace() - response.html("delivery_balance.html", { "delivery": delivery, "debiters": debiters, diff --git a/copanier/templates/delivery.html b/copanier/templates/delivery.html index bdc5dbc..dcfb7cb 100644 --- a/copanier/templates/delivery.html +++ b/copanier/templates/delivery.html @@ -28,26 +28,11 @@ {% endif %} {% if request.user and request.user.is_staff %}
  • - Télécharger les produits + Liste des produits
  • Modifier la livraison
  • -
  • - {% with unique_id="import-command" %} - {% include "includes/modal_import_command.html" %} - {% endwith %} -
  • -
  • - {% with unique_id="add-command" %} - {% include "includes/modal_add_command.html" %} - {% endwith %} -
  • -
  • - {% with unique_id="copy-emails" %} - {% include "includes/modal_copy_emails.html" %} - {% endwith %} -
  • Répartition des paiements
  • diff --git a/copanier/templates/includes/modal_add_command.html b/copanier/templates/includes/modal_add_command.html index 64a2f90..9a1624d 100644 --- a/copanier/templates/includes/modal_add_command.html +++ b/copanier/templates/includes/modal_add_command.html @@ -4,7 +4,7 @@ {% block modal_body %}

    Ajouter une commande pour quelqu'un d'autre

    - +
    {% endblock modal_body %}