aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/login.html2
-rw-r--r--pyaggr3g470r/templates/recover.html22
2 files changed, 24 insertions, 0 deletions
diff --git a/pyaggr3g470r/templates/login.html b/pyaggr3g470r/templates/login.html
index 0a3bec2e..e58b5d83 100644
--- a/pyaggr3g470r/templates/login.html
+++ b/pyaggr3g470r/templates/login.html
@@ -27,5 +27,7 @@
</form>
</div>
<a href="/signup/" class="btn btn-default">{{ _('Sign up') }}</a>
+ &nbsp;
+ <a href="/recover" class="btn btn-default">{{ _('Forgot password') }}</a>
</div><!-- /.container -->
{% endblock %} \ No newline at end of file
diff --git a/pyaggr3g470r/templates/recover.html b/pyaggr3g470r/templates/recover.html
new file mode 100644
index 00000000..8e690bdb
--- /dev/null
+++ b/pyaggr3g470r/templates/recover.html
@@ -0,0 +1,22 @@
+{% extends "layout.html" %}
+{% block content %}
+<div class="container">
+ <div class="jumbotron">
+ <h2>{{ _('Recover your account') }}</h2>
+
+ {% for message in form.email.errors %}
+ <div class="flash">{{ message }}</div>
+ {% endfor %}
+
+ <form action="{{ url_for('recover') }}" method=post>
+ {{ form.hidden_tag() }}
+
+ <div class="form-group">
+ {{ form.email(class_="form-control", placeholder=_('Your email')) }}
+ </div>
+
+ {{ form.submit(class_="btn") }}
+ </form>
+ </div>
+</div><!-- /.container -->
+{% endblock %} \ No newline at end of file
bgstack15