From 0d511e03d8d29470b075e3808e3c79ed1ab3e791 Mon Sep 17 00:00:00 2001 From: erwan-lacoudre <78564187+erwan-lacoudre@users.noreply.github.com> Date: Sun, 8 May 2022 15:37:28 +0200 Subject: [PATCH] Add a Cancel Button when editing a bill (#1013) Co-authored-by: Glandos --- 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 78398ce7..48c3df2b 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 %}