diff options
Diffstat (limited to 'budget/templates/forms.html')
| -rw-r--r-- | budget/templates/forms.html | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/budget/templates/forms.html b/budget/templates/forms.html index 8ac458f..7b512ff 100644 --- a/budget/templates/forms.html +++ b/budget/templates/forms.html @@ -52,10 +52,10 @@ {% endmacro %} -{% macro add_bill(form) %} +{% macro add_bill(form, edit=False) %} <fieldset> - <legend>Add a bill</legend> + <legend>{% if edit %}Edit this {% else %}Add a {% endif %}bill</legend> {% include "display_errors.html" %} {{ form.hidden_tag() }} {{ input(form.date) }} @@ -83,3 +83,15 @@ <a href="{{ url_for("list_bills") }}">No, thanks</a> </div> {% endmacro %} + +{% macro create_archive(form) %} + <fieldset> + <legend>Create an archive</legend> + {{ form.hidden_tag() }} + {{ input(form.start_date) }} + {{ input(form.end_date) }} + </fieldset> + <div class="actions"> + <button class="btn">Create the archive</button> + </div> +{% endmacro %} |
