mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Add a Cancel Button when editing a bill (#1013)
Co-authored-by: Glandos <bugs-github@antipoul.fr>
This commit is contained in:
parent
5bad2c0f16
commit
0d511e03d8
1 changed files with 5 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue