aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/forms.html
diff options
context:
space:
mode:
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 %}