flask-login-example/templates/web/forgot_password.html

29 lines
820 B
HTML
Raw Normal View History

2017-05-17 20:16:30 +02:00
{% extends 'layouts/master.html' %}
{% block title %}Restablecer contraseña{% endblock %}
{% block body %}
<h1>Restablece tu contraseña</h1>
<p>Te enviaremos un email para cambiar la contraseña</p>
<p>
<form action="" method="post">
{% for campo in form %}
{% if campo.type != 'CSRFTokenField' %}
<div class="form-group{%if campo.errors %} has-error{% endif %}">
{{ campo.label }}
{% if campo.type in ('StringField', 'PasswordField') %}
{{ campo(class='form-control') }}
{% else %}
{{ campo() }}
{% endif %}
{% for error in campo.errors %}
<span class="help-block">{{ error }}</span>
{% endfor %}
</div>
{% else %}
{{ campo() }}
{% endif %}
{% endfor %}
<input type="submit" class="btn btn-success" value="Enviar">
</form>
</p>
{% endblock %}