{% extends "base.html" %}

{% block content %}
<div class="span9">
  <h1>Cambiar contraseña</h1>
	<form action="{% url auth_change_password %}" method="POST">
        {% csrf_token %}
          <fieldset>

          <legend>Introduce tu contraseña</legend>
          {% if form.errors %}
            <div class="alert alert-error">
              <p>Tu usuario o contraseña son incorrectos, intentalo de nuevo.</p>
            </div>
          {% endif %}

          <dl class="dl-vertical offset1">
                    {% for field in form %}
                        <dt style="margin:0 0 2% 0">{{field.label}}</dt>
                            <dd >{{ field }} {% if field.errors %}</dd>
                            <dd >{{ field.errors }}{% endif  %}</dd>
                    {% endfor %}
         </dl>
            <div class="form-actions">
              <button type="submit" class="btn btn-primary btn-large pull-right">Cambiar &rarr;</button>
            </div>
        </fieldset>
    </form>
</div>


{% endblock %}
