update password reset for bootstrap 4

This commit is contained in:
Edward Betts 2017-04-10 11:16:56 +01:00
parent ee2d302396
commit 3e77d20679
4 changed files with 32 additions and 26 deletions

View file

@ -1,10 +1,17 @@
{% extends "base.html" %}
{% from "form/controls.html" import render_field, checkbox, submit %} {% from "form/controls.html" import render_field, checkbox, submit %}
{% set title="Reset password" %} {% block title %}Reset password{% endblock %}
{% block content %}
{% set label="send e-mail" %} {% set label="send e-mail" %}
{% set fields %} {% set fields %}
{{ render_field(form.user_or_email) }} {{ render_field(form.user_or_email) }}
{% endset %} {% endset %}
{% include "form/simple.html" %} <h1>{{ self.title() }}</h1>
{% include "form/main.html" %}
{% endblock %}

View file

@ -1,19 +1,12 @@
{% from "form/controls.html" import render_field, checkbox, submit %} {% extends "base.html" %}
{% set title="Reset password" %} {% block title %}Reset password{% endblock %}
{% set label="send e-mail" %}
{% include "head.html" %} {% block content %}
<h1>{{ self.title() }}</h1>
<div class="row">
<div class="col-md-12">
<h1>{{ title }}</h1>
<p>Your password has been set. You may go ahead and log in now.</p> <p>Your password has been set. You may go ahead and log in now.</p>
<p><a href="{{ url_for('.login') }}">Log in</a></p> <p><a href="{{ url_for('.login') }}">Log in</a></p>
</div> {% endblock %}
</div>
{% include "foot.html" %}

View file

@ -1,10 +1,17 @@
{% extends "base.html" %}
{% from "form/controls.html" import render_field %} {% from "form/controls.html" import render_field %}
{% set title="Reset password" %} {% block title %}Reset password{% endblock %}
{% block content %}
{% set label="reset" %} {% set label="reset" %}
{% set fields %} {% set fields %}
{{ render_field(form.password) }} {{ render_field(form.password) }}
{% endset %} {% endset %}
{% include "form/simple.html" %} <h1>{{ self.title() }}</h1>
{% include "form/main.html" %}
{% endblock %}

View file

@ -1,14 +1,13 @@
{% set title="Reset password" %} {% extends "base.html" %}
{% include "head.html" %} {% block title %}Reset password{% endblock %}
<div class="row"> {% block content %}
<div class="col-md-12">
<h1>{{ title }}</h1> <h1>{{ title }}</h1>
<p>We've emailed you instructions for setting your password, if an account exists with the email you entered. You should receive them shortly.</p> <p>We've emailed you instructions for setting your password, if an account
exists with the email you entered. You should receive them shortly.</p>
<p>If you don't receive an email, please make sure you've entered the address you registered with, and check your spam folder.</p> <p>If you don't receive an email, please make sure you've entered the address
</div> you registered with, and check your spam folder.</p>
</div>
{% include "foot.html" %} {% endblock %}