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

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

{% block content %}
{% box "passwordreset" %}
 <form method="post" action=".">
  {% csrf_token %}
  <h1 class="title">{% trans "Recover Password" %}</h1>
  <div class="main">
   <p>{% blocktrans %}Forgotten your password? Enter your e-mail address, and
   we'll send you instructions for creating a new one.{% endblocktrans %}</p>
   <table>
    <tr>
     <td class="label"><label for="id_email">{% trans "E-mail address" %}</label></td>
     <td class="field"><input type="text" name="email" id="id_email" /></td>
     <td class="field"><input type="submit" value="{% trans "Recover" %}" /></td>
    </tr>
   </table>
  </div>
 </form>
{% endbox %}
{% endblock %}

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

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

{% block content %}
{% box "passwordreset" %}
 <form method="post" action=".">

  {# This should really use {% csrf_token %}, but we can't until we #}
  {# move to Django 1.2 in a future release.                        #}
  {% if csrf_token %}
  {%  ifnotequal csrf_token "NOTPROVIDED" %}
  <div style="display: none;"><input type="hidden" name="csrfmiddlewaretoken" value="{{csrf_token}}" /></div>
  {%  endifnotequal %}

  {% endif %}
  <h1 class="title">{% trans "Recover Password" %}</h1>
  <div class="main">
   <p>{% blocktrans %}Forgotten your password? Enter your e-mail address, and
   we'll send you instructions for creating a new one.{% endblocktrans %}</p>
   <table>
    <tr>
     <td class="label"><label for="id_email">{% trans "E-mail address" %}</label></td>
     <td class="field"><input type="text" name="email" id="id_email" /></td>
     <td class="field"><input type="submit" value="{% trans "Recover" %}" /></td>
    </tr>
   </table>
  </div>
 </form>
{% endbox %}
{% endblock %}

Fix Django 1.1 support with the CSRF token in the Password Recovery form.
Fix Django 1.1 support with the CSRF token in the Password Recovery form.

The Password Recovery form had to have the {% csrf_token %} tag added for
Django 1.2. However, this broke Django 1.1. We now implement the tag's logic
directly in the template, for now. In Review Board 1.6, we can require
Django 1.2.
