{% extends 'account/base.html' %}
{% load form_helpers %}
{% load i18n %}

{% block title %}{% trans "Change Password" %}{% endblock %}

{% block content %}
  <form action="." method="post" class="object-edit">
    {% csrf_token %}
    <div class="field-group mb-5">
      <div class="row">
        <h2 class="col-9 offset-3">{% trans "Password" %}</h2>
      </div>
      {% render_field form.old_password %}
      {% render_field form.new_password1 %}
      {% render_field form.new_password2 %}
    </div>
    <div class="text-end">
      <a href="{% url 'account:profile' %}" class="btn btn-outline-secondary">{% trans "Cancel" %}</a>
      <button type="submit" name="_update" class="btn btn-primary">{% trans "Save" %}</button>
    </div>
  </form>
{% endblock %}
