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

{% block breadcrumbs %}
<li><a href="{% url 'password_reset' %}">{% trans "Password reset" %}</a></li>
{% endblock %}

{% block content %}

{% if second_stage %}
{% trans "Forgotten your password? You can now set new one." as msg %}
{% show_message "info" msg %}
{% else %}
{% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." as msg %}
{% show_message "info" msg %}
{% endif %}

{% if form.errors %}
{% trans "Please fix errors in the registration form." as msg %}
{% show_message "error" msg %}
{% endif %}

<form action="{% url 'password_reset' %}" method="post" accept-charset="utf-8" role="form">
<div class="panel panel-primary">
  <div class="panel-heading"><h4 class="panel-title">{% trans "Password reset" %}</h4></div>
  <div class="panel-body">
{% csrf_token %}
{{ form|crispy }}
{% if captcha_form %}
{{ captcha_form|crispy }}
{% endif %}
</div>
<div class="panel-footer">
<input type="submit" value="{% if second_stage %}{% trans 'Set my password' %}{% else %}{% trans 'Reset my password' %}{% endif %}" class="btn btn-primary" />
</div>
</div>
</form>

{% endblock %}
