Add password change page
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
alt="Нет изображения"
|
||||
>
|
||||
</div>
|
||||
<a href="{%url 'password_change' %}">Сменить пароль</a>
|
||||
</div>
|
||||
<div class="col">
|
||||
<h5><span class="badge bg-secondary text-light">Имя пользователя</span> {{ profile.name }}</h5>
|
||||
|
||||
12
main/templates/registration/password_change_done.html
Normal file
12
main/templates/registration/password_change_done.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "base/base.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}Пароль успешно изменен{% endblock title %}
|
||||
|
||||
{% block heading %}Пароль успешно изменен{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div>
|
||||
<h4>Ваш пароль был изменен.</h4>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
14
main/templates/registration/password_change_form.html
Normal file
14
main/templates/registration/password_change_form.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% extends "base/base.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}Изменение пароля{% endblock title %}
|
||||
|
||||
{% block heading %}Сменить пароль{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="Сменить" class="btn btn-success">
|
||||
</form>
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user