From ba1a9e8b86945152716a4a6b07360ae3e4be9345 Mon Sep 17 00:00:00 2001 From: NguyenND Date: Mon, 27 Apr 2026 15:30:14 -0400 Subject: [PATCH] 04/27 Updated Login page background image --- app/templates/auth/login.html | 156 ++++++++++++++++++++++++---------- 1 file changed, 111 insertions(+), 45 deletions(-) diff --git a/app/templates/auth/login.html b/app/templates/auth/login.html index b1140e6..7ddf32f 100644 --- a/app/templates/auth/login.html +++ b/app/templates/auth/login.html @@ -2,52 +2,118 @@ {% block title %}Login - Janitorial QC{% endblock %} -{% block content %} -
-
-
-
-

Janitorial QC

-

Quality Control System

-
-
-
- {{ form.hidden_tag() }} - -
- {{ form.username.label(class="form-label") }} - {{ form.username(class="form-control form-control-lg", placeholder="Enter username") }} - {% if form.username.errors %} -
- {% for error in form.username.errors %}{{ error }}{% endfor %} -
- {% endif %} -
- -
- {{ form.password.label(class="form-label") }} - {{ form.password(class="form-control form-control-lg", placeholder="Enter password") }} - {% if form.password.errors %} -
- {% for error in form.password.errors %}{{ error }}{% endfor %} -
- {% endif %} -
+{% block extra_css %} + +{% endblock %} + +{% block content %} +{# Add .login-page to via a small inline script — Jinja has no direct + access to the tag in base.html, so we set the class from JS on + DOMContentLoaded before first paint where possible, and also synchronously. #} + + +
+ +{# Remove .login-page when navigating away (SPA-style guard) #} + {% endblock %} \ No newline at end of file