{% extends 'layouts/login.html' %}
{% import 'macros/form.html' as f with context %}

{% block title %}Enter a new password{% endblock %}

{% block body %}
  <div class="container">
    <div class="row">
      <div class="col-md-6 offset-md-3 card bg-light">
        {% call f.form_tag('user.password_reset') %}
          <h2 class="mt-2 mb-4">Enter a new password</h2>

          {% call f.form_group(form.password) %}{% endcall %}

          <div class="rowi mb-3">
            <div class="col-md-6">
              <button type="submit" class="btn btn-primary btn-block">
                Continue
              </button>
            </div>
            <div class="col-md-6">
              <a href="{{ url_for('user.login') }}"
                 class="btn btn-outline-secondary btn-block">
                Back to login
              </a>
            </div>
          </div>
        {% endcall %}
      </div>
    </div>
  </div>
{% endblock %}
