{% extends "misago/usercp/base.html" %}
{% load i18n misago_forms %}


{% block page %}
<div class="form-panel">
  <form method="POST" role="form" class="form-horizontal">
    {% csrf_token %}

    <div class="form-header">
      <h2>
        <span class="{{ active_page.icon }}"></span>
        {{ active_page.name }}
      </h2>
    </div>

    {% include "misago/form_errors.html" %}

    <div class="form-body">
      {% with label_class="col-md-3" field_class="col-md-9" %}
      <fieldset>
        <legend>{% trans "Fill out at least one field" %}</legend>

        {% form_row form.new_email label_class field_class %}
        {% form_row form.new_password label_class field_class %}

      </fieldset>
      <fieldset>
        <legend>{% trans "Confirm change" %}</legend>

        {% form_row form.current_password label_class field_class %}

      </fieldset>
      {% endwith %}
    </div>

    <div class="form-footer">
      <div class="row">
        <div class="col-md-9 col-md-offset-3">

          <button class="btn btn-primary">{% trans "Save changes" %}</button>

        </div>
      </div>
    </div>

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