From 5a99b9db3ddf7507470521c979edfccfad6090dc Mon Sep 17 00:00:00 2001 From: LACOUDRE erwan Date: Mon, 11 Apr 2022 12:22:52 +0200 Subject: [PATCH 1/2] Add a Cancel Button when editing a bill --- ihatemoney/templates/forms.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ihatemoney/templates/forms.html b/ihatemoney/templates/forms.html index 78398ce74..2ae7c9c35 100644 --- a/ihatemoney/templates/forms.html +++ b/ihatemoney/templates/forms.html @@ -200,7 +200,11 @@
{{ form.submit(class="btn btn-primary") }} - {% if not edit %} {{ form.submit2(class="btn btn-light") }}{% endif %} + {% if edit %} + {{_("Cancel") }} + {% else %} + {{ form.submit2(class="btn btn-light") }} + {% endif %}
{% endmacro %} From 08c6b6acac9f3b859192300ee64123f03dab2b0a Mon Sep 17 00:00:00 2001 From: erwan-lacoudre <78564187+erwan-lacoudre@users.noreply.github.com> Date: Mon, 2 May 2022 13:44:17 +0200 Subject: [PATCH 2/2] Change in the button class Co-authored-by: Glandos --- ihatemoney/templates/forms.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/templates/forms.html b/ihatemoney/templates/forms.html index 2ae7c9c35..48c3df2b7 100644 --- a/ihatemoney/templates/forms.html +++ b/ihatemoney/templates/forms.html @@ -201,7 +201,7 @@
{{ form.submit(class="btn btn-primary") }} {% if edit %} - {{_("Cancel") }} + {{_("Cancel") }} {% else %} {{ form.submit2(class="btn btn-light") }} {% endif %}