Merge pull request 'Created the change password page' (#2) from dev into main
Reviewed-on: #2
This commit is contained in:
commit
deaf004dbd
@ -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 %}
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Contraseña actualizada correctamente</h2>
|
||||
<a href="/">Volver</a>
|
||||
{% endblock %}
|
||||
@ -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 %}
|
||||
@ -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')),
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user