Created the change password page

This commit is contained in:
JKuijperM 2026-02-23 20:03:08 +01:00
parent 9f0334a53e
commit ae5bb71a5e
4 changed files with 20 additions and 4 deletions

View File

@ -20,12 +20,11 @@
<a href="{% url 'income_list' %}" class="nav-item {% if active_menu == 'incomes' %}active{% endif %} ">Ingresos</a>
<a href="{% url 'tag_list' %}" class="nav-item {% if active_menu == 'tags' %}active{% endif %} ">Etiquetas</a>
<a href="{% url 'fuel_list' %}" class="nav-item {% if active_menu == 'fuel' %}active{% endif %} ">Repostajes</a>
<a href="{% url 'category_list' %}" class="nav-item {% if active_menu == 'categories' %}active{% endif %} ">Categorías</a>
<span class="spacer"></span>
<a href="{% url 'category_list' %}">
Hola {{ request.user.username }}
</a>
<a href="{% url 'password_change' %}">{{ request.user.username }}</a>
<form method="post" action="{% url 'logout' %}" class="logout-form">
{% csrf_token %}

View File

@ -0,0 +1,6 @@
{% extends "base.html" %}
{% block content %}
<h2>Contraseña actualizada correctamente</h2>
<a href="/">Volver</a>
{% endblock %}

View File

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block content %}
<h2>Cambiar contraseña</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Cambiar</button>
</form>
{% endblock %}

View File

@ -21,5 +21,6 @@ from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include(urls)),
path('', include('expenses.urls')),
path('', include('expenses.urls')),
path('accounts/', include('django.contrib.auth.urls')),
]