make password change crispy

This commit is contained in:
Matthias 2021-09-05 10:32:08 +02:00
parent 6e8bf01a97
commit fcf54fc0d2
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -0,0 +1,16 @@
{% extends "account/base.html" %}
{% load i18n crispy_forms_tags %}
{% block head_title %}{% trans "Change Password" %}{% endblock %}
{% block content %}
<h1>{% trans "Change Password" %}</h1>
<form method="POST" action="{% url 'account_change_password' %}" class="password_change">
{% csrf_token %}
{{ form|crispy }}
<button type="submit" name="action">{% trans "Change Password" %}</button>
<a href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
</form>
{% endblock %}