From 37b099ab79b38b567c2365d4fd3c82df28ce8713 Mon Sep 17 00:00:00 2001 From: Jojo144 Date: Mon, 28 Aug 2023 20:24:37 +0200 Subject: [PATCH] Make editing a bill into a modal --- ihatemoney/templates/list_bills.html | 22 +++++++++++++++++++++- ihatemoney/web.py | 10 ++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index 749c9070b..b04efd9c3 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -10,6 +10,7 @@ {% block title %} - {{ g.project.name }}{% endblock %} {% block js %} {% if add_bill %} $('#new-bill > a').click(); {% endif %} + {% if edit_bill is not none %} $('#edit-bill > a').click(); {% endif %} // ask for confirmation before removing an user $('.action.delete').each(function(){ @@ -86,6 +87,25 @@ + {% if edit_bill is not none %} + + + {% endif %} +
{% if bills.pages > 1 %}