{% extends 'layout/page.html' %}

{% block head_title %}
  {{ i18n.gettext('Password reset request') }} - {{ config.TRACKER_NAME }}
{% endblock %}

{% block page_header %}
  {{ i18n.gettext('Password reset request') }}
{% endblock %}

{% block content %}

  <p>
    {{ i18n.gettext('If you know the email address you registered with, enter it below.') }}
  </p>

  <form method="POST" action='{{ context.designator() }}'>
    <div class='row-fluid'>
      <label>{{ i18n.gettext('Email Address') }}:</label>
      <input type='text' name="address">
      <input name="@csrf" type="hidden"
             value="{{ utils.anti_csrf_nonce() }}">
      <input name="@csrf" type="hidden"
             value="{{ utils.anti_csrf_nonce() }}">
      <input type="hidden" name="@action" value="passrst">
      <input type="hidden" name="@template" value="forgotten">
      <input type="submit" value="{{ i18n.gettext('Password reset') }}" class='btn btn-primary'>
    </div>

    <div class='row-fluid vspace-two'> 
      <p>{{ i18n.gettext('Or, if you know your username, then enter it below') }}.</p>
      <label>{{ i18n.gettext('Username') }}:</label>
      <input type='text' name="username">
      <input type="submit" value="{{ i18n.gettext('Password reset') }}" class='btn btn-info'>
    </div>
  </form>

  <div class='row-fluid vspace-two'>
    <p>
      {{ i18n.gettext('A confirmation email will be sent to you -
      please follow the instructions within it to complete the reset process.') }}
    </p>
  </div>

{% endblock %}
