added "more information" in the login page

This commit is contained in:
JKuijperM 2026-07-28 12:49:21 +02:00
parent 166a0b8d18
commit 386fb4dec8
4 changed files with 28 additions and 0 deletions

View File

@ -532,3 +532,8 @@ tbody tr:hover {
.progress-fill.danger { .progress-fill.danger {
background-color: #b71c1c; background-color: #b71c1c;
} }
.auth-help {
margin-top: 16px;
font-size: 0.9em;
}

View File

@ -10,4 +10,8 @@
<button type="submit">Entrar</button> <button type="submit">Entrar</button>
</form> </form>
<p class="auth-help">
¿Olvidaste la contraseña? <a href="{% url 'password_help' %}">Más información</a>
</p>
{% endblock %} {% endblock %}

View File

@ -0,0 +1,17 @@
{% extends "expenses/base_auth.html" %}
{% block content %}
<h2>Recuperar contraseña</h2>
<p>
Esta aplicación actualmente no envía correos de recuperación automáticos.
Si has olvidado tu contraseña, ponte en contacto con el administrados
para que te asigne una nueva.
</p>
<p>
<a href="{% url 'login' %}">Volver al inicio de sesión.</a>
</p>
{% endblock %}

View File

@ -1,5 +1,6 @@
from . import views from . import views
from django.urls import path from django.urls import path
from django.views.generic import TemplateView
urlpatterns = [ urlpatterns = [
path('', views.home, name='home'), path('', views.home, name='home'),
@ -32,4 +33,5 @@ urlpatterns = [
path('goals/new/', views.goal_create, name='goal_create'), path('goals/new/', views.goal_create, name='goal_create'),
path('goals/<int:pk>/edit/', views.goal_edit, name='goal_edit'), path('goals/<int:pk>/edit/', views.goal_edit, name='goal_edit'),
path('goals/<int:pk>/delete/', views.goal_delete, name='goal_delete'), path('goals/<int:pk>/delete/', views.goal_delete, name='goal_delete'),
path('password_help', TemplateView.as_view(template_name="registration/password_help.html"), name="password_help"),
] ]