flask-login-example/templates/web/forgot_password.html
Andros Fenollosa f056300d27 First commit
2017-05-17 20:16:30 +02:00

29 lines
820 B
HTML

{% 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 %}