{% extends "cranefly/layout.html" %}
{% import "_forms.html" as form_theme with context %}
{% import "cranefly/macros.html" as macros with context %}

{% block title %}{{ macros.page_title(title=_('Request New Password')) }}{% endblock %}

{% block content %}
<div class="row">
  <div class="span6 offset3">
    <div class="form-container">

      <div class="form-header">
        <h1>{% trans %}Request New Password{% endtrans %}</h1>
      </div>

      {% if message %}
      <div class="messages-list">
        {{ macros.draw_message(message) }}
      </div>
      {% endif %}

      <form action="{% url 'forgot_password' %}" method="post">
        <div class="form-fields">
          {{ form_theme.form_widget(form, width=6) }}
        </div>
        <div class="form-actions">
          <button type="submit" class="btn btn-primary">{% trans %}Reset Password{% endtrans %}</button>
        </div>
      </form>

    </div>
  </div>
</div>
{% endblock %}