{% extends "master.html" %}
{% from "_formhelpers.html" import render_field_in_row %}

{% block title %}Change password{% endblock %}
{%block tag %}home{% endblock %}

{% block content %}
<h2>Change password</h2>

<form action="{{ url_for('local_auth.reset_password', token=token) }}" method="POST">
  <table>
    {{ render_field_in_row(form.password) }}
    {{ render_field_in_row(form.confirm_password) }}
  </table>
  <p class="buttons indent">
    <input type="submit" class="submit positive button" value="Update">
    <a href="{{ url_for('base.index') }}">
      <input type="button" value="Cancel" class="button">
    </a>
    {{ form.csrf_token }}
  </p>
</form>

{% endblock %}
