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

27 lines
781 B
HTML

{% extends 'layouts/master.html' %}
{% block title %}Cambiar contraseña{% endblock %}
{% block body %}
<h1>Cambia tu contraseña</h1>
<form action="" method="post">
<input type="hidden" name="email" value="{{ email }}">
{% 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="Actualizar">
</form>
{% endblock %}