Skip to content

Commit

Permalink
Add a Cancel Button when editing a bill (#1013)
Browse files Browse the repository at this point in the history
Co-authored-by: Glandos <bugs-github@antipoul.fr>
  • Loading branch information
erwan-lacoudre and Glandos committed May 8, 2022
1 parent 5bad2c0 commit 0d511e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ihatemoney/templates/forms.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 0d511e0

Please sign in to comment.