{% extends "master.html" %}
{% from "_formhelper.html" import render_bootstrap_field %}

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

{% block content %}

<div class="container">
  <div class="row">
    <div class="col-md-6 mx-auto pt-5">
      <h4 class="text-center font-weight-bold mb-4">Change Password</h4>
      <form action="{{ url_for('ui_ns.change_password')}}" method="post">
        {{ render_bootstrap_field(form.old_password) }}
        {{ render_bootstrap_field(form.password) }}
        {{ render_bootstrap_field(form.confirm_password) }}
        {{ form.csrf_token }}
        <input class="btn btn-primary btn-block mt-4" type="submit" value="Update"
          title="Update description">
      </form>
    </div>
  </div>
</div>

{% endblock %}
