1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 09:58:23 +02:00

Consumptions with item selected before

This commit is contained in:
Yohann D'ANELLO
2020-03-13 01:34:20 +01:00
parent e81450e092
commit bb0fc8c2cc
3 changed files with 39 additions and 6 deletions

View File

@ -47,7 +47,7 @@
</div>
<ul class="list-group list-group-flush" id="consos_list">
</ul>
<button id="consume" class="form-control btn btn-primary">Consommer !</button>
<button id="consume_all" class="form-control btn btn-primary">Consommer !</button>
</div>
</div>
</div>
@ -163,6 +163,8 @@
$("#consos_list_div").hide();
$("#consume_all").click(consumeAll);
{% for button in transaction_templates %}
{% if button.display %}
$("#button{{ button.id }}").click(function() {