{% if messages %}
{% url 'account_change_password' as action_url %} {% element form form=form method="post" action=action_url %} {% slot body %} {% csrf_token %} {{ redirect_field }} {% for field in form %}
Back Home
{% for message in messages %}
{% endif %}
{% endfor %}
Change Password
{% url 'account_change_password' as action_url %} {% element form form=form method="post" action=action_url %} {% slot body %} {% csrf_token %} {{ redirect_field }} {% for field in form %}
{{ field|add_class:"form-control" }}
{% for error in field.errors %}
{% endfor %}
{% endslot %}
{% slot actions %}
{% element button type="submit" %}
{% trans "Change Password" %}
{% endelement %}
{% trans "Forgot Password?" %}
{% endslot %}
{% endelement %}
{{ error }}
{% endfor %}