From a00f64a1723f8244c9778dcf62dd8f5c0be82e2f Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sun, 31 Mar 2019 20:11:29 +0200 Subject: [PATCH] Add "copy emails" button in delivery page --- README.md | 10 ++++++++++ copanier/templates/delivery.html | 5 +++++ copanier/templates/includes/modal_copy_emails.html | 8 ++++++++ 3 files changed, 23 insertions(+) create mode 100644 README.md create mode 100644 copanier/templates/includes/modal_copy_emails.html diff --git a/README.md b/README.md new file mode 100644 index 0000000..e935012 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# Copanier + +Gestion de commande groupée minimaliste. + + + +# Installation + +Dépendances: +- python >= 3.7 diff --git a/copanier/templates/delivery.html b/copanier/templates/delivery.html index b5bb6d8..5d1e34a 100644 --- a/copanier/templates/delivery.html +++ b/copanier/templates/delivery.html @@ -70,6 +70,11 @@ {% include "includes/modal_add_command.html" %} {% endwith %} +
  • + {% with unique_id="copy-emails" %} + {% include "includes/modal_copy_emails.html" %} + {% endwith %} +
  • {% endif %} {% endblock body %} diff --git a/copanier/templates/includes/modal_copy_emails.html b/copanier/templates/includes/modal_copy_emails.html new file mode 100644 index 0000000..8de45c2 --- /dev/null +++ b/copanier/templates/includes/modal_copy_emails.html @@ -0,0 +1,8 @@ +{% extends "includes/modal.html" %} + +{% block modal_label %} Copier les emails{% endblock modal_label %} +{% block modal_body %} +
    + +
    +{% endblock modal_body %}