From f52f9dd3254343d7473debe394e39f0cbd1cea99 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 22 Jan 2026 21:56:26 -0800 Subject: [PATCH] Basic login styling --- src/paperless_migration/settings.py | 2 +- .../templates/account/login.html | 61 +++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 src/paperless_migration/templates/account/login.html diff --git a/src/paperless_migration/settings.py b/src/paperless_migration/settings.py index 3a7924ceb..41781543a 100644 --- a/src/paperless_migration/settings.py +++ b/src/paperless_migration/settings.py @@ -149,7 +149,7 @@ ROOT_URLCONF = "paperless_migration.urls" TEMPLATES = [ { "BACKEND": "django.template.backends.django.DjangoTemplates", - "DIRS": [], + "DIRS": [BASE_DIR / "paperless_migration" / "templates"], "APP_DIRS": True, "OPTIONS": { "context_processors": [ diff --git a/src/paperless_migration/templates/account/login.html b/src/paperless_migration/templates/account/login.html new file mode 100644 index 000000000..283588bb2 --- /dev/null +++ b/src/paperless_migration/templates/account/login.html @@ -0,0 +1,61 @@ +{% load i18n static %} + + + + + + + + {% translate "Paperless-ngx sign in" %} + + + + + +
+
+ {% csrf_token %} + {% include "paperless-ngx/snippets/svg_logo.html" with extra_attrs="width='240' class='logo mb-3'" %} +

{% translate "Migration Mode" %}

+ + {% for message in messages %} + + {% endfor %} + +

{% translate "Login with a superuser account to proceed." %}

+ + {% if form.errors %} + + {% endif %} + + {% translate "Username" as i18n_username %} + {% translate "Password" as i18n_password %} +
+ + +
+
+ + +
+
+ +
+
+
+ +