Files
web2.0-backend/templates/password_reset/reset.html
2017-10-31 21:37:19 +02:00

28 lines
987 B
HTML

{% extends "password_reset/base.html" %}{% load i18n %}
{% load i18n %}
{% load bootstrap4 %}
{% block content %}
<div class="container">
{% if invalid %}{% url "password_reset_recover" as recovery_url %}
<div class="d-flex justify-content-center">
<p>{% blocktrans %}Sorry, this password reset link is invalid. You can still <a href="{{ recovery_url }}">request a new one</a>.{% endblocktrans %}</p>
</div>
{% else %}
<div class="d-flex justify-content-center">
<p>{% blocktrans %}Hi, <strong>{{ username }}</strong>. Please choose your new password.{% endblocktrans %}</p>
</div>
<div class="d-flex justify-content-center">
<form method="post" action="{% url "password_reset_reset" token %}" class="form">{% csrf_token %}
{% bootstrap_form form %}
{% buttons %}
<button type="submit" class="btn btn-primary">
{% trans "Set new password" %}
</button>
{% endbuttons %}
</form>
</div>
{% endif %}
</div>
{% endblock %}