diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-09-09 19:14:19 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-09-09 19:14:19 +0200 |
| commit | 801802836a648ac0865c1c932e3cf9a01e3a639e (patch) | |
| tree | d2ee3ed47d6c3fe7c454ef00c6018a633660d9d7 /budget/templates/forms.html | |
| parent | 295beeade4e2238b7290940a348fe3a691336e38 (diff) | |
| download | ihatemoney-mirror-801802836a648ac0865c1c932e3cf9a01e3a639e.zip ihatemoney-mirror-801802836a648ac0865c1c932e3cf9a01e3a639e.tar.gz ihatemoney-mirror-801802836a648ac0865c1c932e3cf9a01e3a639e.tar.bz2 | |
Start working on archive management
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 %} |
