aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/forms.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-10-08 15:52:12 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-10-08 15:52:12 +0200
commit75209aeed0140c804047b4f3466d329b9eb246b9 (patch)
tree51cbe453bc31e3418e050f0e780ac99e3c57ba92 /budget/templates/forms.html
parent1338653bd2234a60eab368f58dcd8d2bcb3f3d6b (diff)
downloadihatemoney-mirror-75209aeed0140c804047b4f3466d329b9eb246b9.zip
ihatemoney-mirror-75209aeed0140c804047b4f3466d329b9eb246b9.tar.gz
ihatemoney-mirror-75209aeed0140c804047b4f3466d329b9eb246b9.tar.bz2
Add a password recovery feature. Fix #32
Diffstat (limited to 'budget/templates/forms.html')
-rw-r--r--budget/templates/forms.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/budget/templates/forms.html b/budget/templates/forms.html
index 80a0d17..beb714b 100644
--- a/budget/templates/forms.html
+++ b/budget/templates/forms.html
@@ -21,7 +21,7 @@
<div class="actions">
<button type="submit" class="btn primary">{{ field.name }}</button>
{% if home %}
- <a href="{{ url_for(".home") }}">Go back Home</a>
+ <a href="{{ url_for(".remind_password") }}">Can't remember the password?</a>
{% endif %}
{% if cancel %}
<button id="cancel-form" type="reset" class="btn">Cancel</button>
@@ -32,6 +32,7 @@
{% macro authenticate(form, home=False) %}
{% include "display_errors.html" %}
+
{{ form.hidden_tag() }}
{{ input(form.id) }}
{{ input(form.password) }}
@@ -111,3 +112,12 @@
<button class="btn">Create the archive</button>
</div>
{% endmacro %}
+
+{% macro remind_password(form) %}
+
+ {% include "display_errors.html" %}
+ {{ form.hidden_tag() }}
+ {{ input(form.id) }}
+ {{ submit(form.submit) }}
+
+{% endmacro %}