Add "copy emails" button in delivery page

This commit is contained in:
Yohan Boniface 2019-03-31 20:11:29 +02:00
parent da1af28aaa
commit a00f64a172
3 changed files with 23 additions and 0 deletions

10
README.md Normal file
View file

@ -0,0 +1,10 @@
# Copanier
Gestion de commande groupée minimaliste.
# Installation
Dépendances:
- python >= 3.7

View file

@ -70,6 +70,11 @@
{% include "includes/modal_add_command.html" %} {% include "includes/modal_add_command.html" %}
{% endwith %} {% endwith %}
</li> </li>
<li>
{% with unique_id="copy-emails" %}
{% include "includes/modal_copy_emails.html" %}
{% endwith %}
</li>
{% endif %} {% endif %}
</ul> </ul>
{% endblock body %} {% endblock body %}

View file

@ -0,0 +1,8 @@
{% extends "includes/modal.html" %}
{% block modal_label %}<i class="icon-clipboard"></i> Copier les emails{% endblock modal_label %}
{% block modal_body %}
<div>
<textarea>{{ ",".join(delivery.orders.keys()) }}</textarea>
</div>
{% endblock modal_body %}