{% extends "adminapp/master.html" %}

{% block content %}
    <div class="container">
        <h2>Set a New Password</h2>
        {% if validlink %}
            <p>Please enter your new password twice.</p>
            <form method="post">
                {% csrf_token %}
                {{ form.as_p }}
                <button type="submit">Reset Password</button>
            </form>
        {% else %}
            <p>The password reset link is invalid or has expired.</p>
        {% endif %}
        <a href="{% url 'loginview' %}">Back to login</a>
    </div>
{% endblock %}
