bornhack-website/profiles/templates/account/password_reset_from_key.html
Thomas Steen Rasmussen 01a6ddff0f typo
2016-06-01 15:36:55 +02:00

32 lines
800 B
HTML

{% extends "base.html" %}
{% load account %}
{% load bootstrap3 %}
{% block content %}
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1>{% if token_fail %}Invalid link{% else %}Reset password{% endif %}</h1>
{% if token_fail %}
<p>
The given token is invalid.
</p>
<p>
<a href="{% url 'account_reset_password' %}" class="btn btn-primary">Request new reset</a>
</p>
{% else %}
{% if form %}
<form class="login" method="POST">
{% csrf_token %}
{% bootstrap_form form %}
<button class="form-control btn btn-black" type="submit">Reset password</button>
</form>
{% else %}
<p>Your password has been reset</p>
{% endif %}
{% endif %}
</div>
</div>
{% endblock %}