{% extends "myhome_base.html" %}
{% load i18n %}

{% block title %}{% trans "Password Reset" %}{% endblock %}

{% block main_panel %}

{% if validlink %}

<div class="narrow-panel">
    <h2>{% trans "Input new password" %}</h2>
    <form action="" method="post">{% csrf_token %}
        <label for="id_new_password1">{% trans "New Password: " %}</label>
        {{ form.new_password1 }}
        {{ form.new_password1.errors }}
        <label for="id_new_password2">{% trans "Confirm Password: " %}</label>
        {{ form.new_password2 }}
        {{ form.new_password2.errors }}
        <input type="submit" value="{% trans "Submit" %}" class="submit" />
    </form>
</div>

{% else %}

<div class="text-panel">
    <p>{% trans "Failed to reset password: this link is no longer available." %}</p>
</div>

{% endif %}
{% endblock %}
