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

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

{% block main_panel %}

{% if validlink %}

<div class="new-narrow-panel">
    <h2 class="hd">{% trans "Reset Password" %}</h2>
    <form action="" method="post" class="con">{% 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 %}

{% block extra_script %}
<script type="text/javascript">
    $('[type="password"]').addClass('input');  
</script>
{% endblock %}
