53 lines
2.4 KiB
HTML
53 lines
2.4 KiB
HTML
{% extends "base.html" %}
|
|
{% load crispy_forms_filters %}
|
|
{% load i18n static %}
|
|
{% load allauth %}
|
|
{% block head_title %}
|
|
{% trans "Change Password" %}
|
|
{% endblock head_title %}
|
|
{% block content %}
|
|
<div class="row ">
|
|
<div class="row flex-center min-vh-50">
|
|
<div class="col-sm-10 col-md-8 col-lg-5 col-xl-5 col-xxl-3">
|
|
<a class="d-flex flex-center text-decoration-none mb-4"
|
|
href="{% url 'home' %}">
|
|
<div class="d-flex align-items-center fw-bolder fs-3 d-inline-block">
|
|
<div class="d-flex align-items-center fw-bolder fs-3 d-inline-block">
|
|
<img class="d-dark-none"
|
|
src="{% static 'images/logos/logo-d.png' %}"
|
|
alt="{% trans 'home' %}"
|
|
width="58" />
|
|
<img class="d-light-none"
|
|
src="{% static 'images/logos/logo.png' %}"
|
|
alt="{% trans 'home' %}"
|
|
width="58" />
|
|
</div>
|
|
</div>
|
|
</a>
|
|
<div class="text-center">
|
|
<h3 class="mb-4">
|
|
{% if token_fail %}
|
|
{% trans "Bad Token" %}
|
|
{% else %}
|
|
{% trans "Change Password" %}
|
|
{% endif %}
|
|
</h3>
|
|
</div>
|
|
{% if token_fail %}
|
|
{% url 'account_reset_password' as passwd_reset_url %}
|
|
<p>
|
|
{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktrans %}
|
|
</p>
|
|
{% else %}
|
|
<form method="POST" action="{{ action_url }}" class="form">
|
|
{% csrf_token %}
|
|
{{ redirect_field }}
|
|
{{ form|crispy }}
|
|
<button type="submit" class="btn btn-phoenix-primary btn-sm w-100">{% trans 'Change Password' %}</button>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock content %}
|