From e59870a66024dd8e0b01d4de402d970b92c457ad Mon Sep 17 00:00:00 2001 From: catborise Date: Tue, 27 Oct 2026 19:21:37 +0300 Subject: [PATCH] refactor(accounts): the sign-in pages on Bootstrap components instead of signin.css static/css/signin.css (308 lines) gave the sign-in and two-factor sign-in pages their own components: a card, input groups, a submit button, a footer and a status dot, with gradients, a blurred card, entry and pulse animations, and rules that undid base.html's layout (its container, its padding) from a "signin-page" class the pages' scripts put on the body. The pages are Bootstrap now: a card in the grid's centre column, the logo a rounded-3 bg-primary block, the fields Bootstrap input-groups with the password toggle an outline button, the submit a w-100 btn-primary, the footer a border-top line with a rounded-circle dot. They follow the selected Bootswatch theme like every other page. signin.css, its body class and its decoration go; so does the footer's "v2.0.0", a version the panel never had. The sign-out page (logout.html) was never shown: LOGOUT_REDIRECT_URL sends a signed-out user to the sign-in page. It goes, with the view's template name. --- accounts/templates/accounts/otp_login.html | 120 ++++---- accounts/templates/login.html | 100 +++---- accounts/templates/logout.html | 42 --- accounts/urls.py | 3 +- static/css/signin.css | 308 --------------------- 5 files changed, 104 insertions(+), 469 deletions(-) delete mode 100644 accounts/templates/logout.html delete mode 100644 static/css/signin.css diff --git a/accounts/templates/accounts/otp_login.html b/accounts/templates/accounts/otp_login.html index 1dc2be83..e9d1a67d 100644 --- a/accounts/templates/accounts/otp_login.html +++ b/accounts/templates/accounts/otp_login.html @@ -1,77 +1,71 @@ {% extends "base.html" %} {% load i18n %} -{% load static %} {% load django_bootstrap5 %} {% block title %}{% trans "WebVirtCloud" %} - {% trans "Sign In with OTP" %}{% endblock title %} -{% block style %} - -{% endblock style %} - {% block content %} -
-