{% extends "password_reset/base.html" %}
{% load i18n %}
{% block title %}{% trans "Account recovery" %}{% endblock %}
{% block header %}{% trans "Account recovery" %}{% endblock %}
{% block byline %}{% endblock %}
{% block login_status%}{% endblock %}

{% block content %}
	{% if invalid %}{% url "password_reset_recover" as recovery_url %}
        <div style="padding: 40px;">
		<p>{% blocktrans %}Sorry, this password reset link is invalid. You can still <a href="{{ recovery_url }}">request a new one</a>.{% endblocktrans %}</p>
        </div>
	{% else %}
		<form method="post" action="{% url "password_reset_reset" token %}">
    		<p>{% blocktrans %}Hi, <strong>{{ username }}</strong>. Please choose your new password.{% endblocktrans %}</p>
			{% csrf_token %}
			{{ form.as_p }}
			<p><input type="submit" value="{% trans "Set new password" %}"></p>
		</form>
	{% endif %}
{% endblock %}
