{% extends "base.html" %}

{% block title %}Password reset{% endblock %}

{% block pagetitle %}Password Reset{% endblock %}

{% block content %}
  {% if validlink %}
    <p>Please enter your new password twice so we can verify you typed it in correctly.</p>
    <form action="" method="post">
      {% csrf_token %}
      <table>
        {{ form }}
      </table>
     <input type="submit" value="Change my password">
    </form>
    {% else %}
    <h1>Password reset unsuccessful</h1>
    <p>The password reset link was invalid, possibly because it has already been used.  Please request a new password reset.</p>
  {% endif %}
{% endblock %}