From 15809a4ccf3f0ef2e04fb7e5570ba34b322feb67 Mon Sep 17 00:00:00 2001 From: Tobias O Date: Wed, 29 Oct 2025 12:01:35 +1300 Subject: [PATCH] style: update login pages --- epdb/views.py | 9 +- templates/framework.html | 3 +- templates/includes/footer.html | 7 +- templates/includes/navbar.html | 2 +- templates/modals/batch_predict_modal.html | 4 + templates/static/login.html | 228 ++++++++++++++---- templates/static/login_base.html | 68 ++++++ templates/static/password_reset_complete.html | 29 ++- templates/static/password_reset_confirm.html | 113 +++++++-- templates/static/password_reset_done.html | 31 ++- templates/static/password_reset_form.html | 48 ++-- templates/static/register.html | 65 ----- 12 files changed, 431 insertions(+), 176 deletions(-) create mode 100644 templates/static/login_base.html delete mode 100644 templates/static/register.html diff --git a/epdb/views.py b/epdb/views.py index 97e997b1..fea53af8 100644 --- a/epdb/views.py +++ b/epdb/views.py @@ -135,9 +135,12 @@ def register(request): context = get_base_context(request) if request.method == "GET": - context["title"] = "enviPath" - context["next"] = request.GET.get("next", "") - return render(request, "static/register.html", context) + # Redirect to unified login page with signup tab + next_url = request.GET.get("next", "") + redirect_url = reverse("login") + "#signup" + if next_url: + redirect_url += f"?next={next_url}" + return redirect(redirect_url) elif request.method == "POST": context["title"] = "enviPath" if next := request.POST.get("next"): diff --git a/templates/framework.html b/templates/framework.html index 3a682e4a..098d5850 100644 --- a/templates/framework.html +++ b/templates/framework.html @@ -162,8 +162,7 @@ {% if meta.user.username == 'anonymous' %}
  • - Login + Login
  • {% else %}