Add a Cancel Button when editing a bill (#1013)

Co-authored-by: Glandos <bugs-github@antipoul.fr>
This commit is contained in:
erwan-lacoudre 2022-05-08 15:37:28 +02:00 committed by GitHub
parent 5bad2c0f16
commit 0d511e03d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,7 +200,11 @@
</fieldset>
<div class="actions">
{{ form.submit(class="btn btn-primary") }}
{% if not edit %} {{ form.submit2(class="btn btn-light") }}{% endif %}
{% if edit %}
<a href="{{ url_for(".list_bills") }}" class="btn btn-outline-secondary"> {{_("Cancel") }} </a>
{% else %}
{{ form.submit2(class="btn btn-light") }}
{% endif %}
</div>
{% endmacro %}