aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
Diffstat (limited to 'budget/templates')
-rw-r--r--budget/templates/edit_project.html6
-rw-r--r--budget/templates/forms.html11
2 files changed, 16 insertions, 1 deletions
diff --git a/budget/templates/edit_project.html b/budget/templates/edit_project.html
index 0240eff..a5e85c3 100644
--- a/budget/templates/edit_project.html
+++ b/budget/templates/edit_project.html
@@ -10,6 +10,10 @@
{% block content %}
<h2>{{ _("Edit this project") }}</h2>
<form class="form-horizontal" method="post">
-{{ forms.edit_project(form) }}
+{{ forms.edit_project(edit_form) }}
+</form></br>
+<h2>{{ _("Download this project's data") }}</h2>
+<form class="form-horizontal" method="post">
+{{ forms.export_project(export_form) }}
</form>
{% endblock %}
diff --git a/budget/templates/forms.html b/budget/templates/forms.html
index 3f8cc4a..b4fa236 100644
--- a/budget/templates/forms.html
+++ b/budget/templates/forms.html
@@ -150,6 +150,17 @@
</div>
{% endmacro %}
+{% macro export_project(form) %}
+ <fieldset>
+ {{ form.hidden_tag() }}
+ {{ input(form.export_type) }}
+ {{ input(form.export_format) }}
+ </fieldset>
+ <div class="actions">
+ <button class="btn btn-primary">{{ _("Download") }}</button>
+ </div>
+{% endmacro %}
+
{% macro remind_password(form) %}
{% include "display_errors.html" %}