{% extends "base.html" %}

{% load django_bootstrap5 %}

{% block headline %}
  {% if validlink %}
    Reset your password
  {% else %}
    Password reset failed
  {% endif %}
{% endblock %}

{% block content %}
  {% if validlink %}
    <p>Please enter (and confirm) your new password.</p>
    <form action="" method="post">
      {% csrf_token %}
      {% bootstrap_form form layout="horizontal" %}
      {% bootstrap_button "Change my password" extra_classes="ms-auto" button_type="submit" %}
    </form>
  {% else %}
    {% bootstrap_alert "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." alert_type="danger" dismissible=False %}
  {% endif %}
{% endblock %}
