{% extends 'base.html' %}

{% block content %}

{% if validlink %}
<article class="panel">
    <h1>Reset password</h1>
    <p>Enter a <em>new</em> password below.</p>
    <form method="post" action=".">
        {% csrf_token %}
        {{ form.as_p }}

        <input type="submit" value="Reset your password" class="action-button">
    </form>
</article>
{% else %}

<article class="panel">
    <h1 class="error">Password reset failed</h1>
</article>

{% endif %}

{% endblock %}
