]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: add account_inactive template / url (#9322)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 6 Mar 2025 22:55:04 +0000 (14:55 -0800)
committerGitHub <noreply@github.com>
Thu, 6 Mar 2025 22:55:04 +0000 (14:55 -0800)
src/documents/templates/account/account_inactive.html [new file with mode: 0644]
src/locale/en_US/LC_MESSAGES/django.po
src/paperless/urls.py

diff --git a/src/documents/templates/account/account_inactive.html b/src/documents/templates/account/account_inactive.html
new file mode 100644 (file)
index 0000000..4b7bd89
--- /dev/null
@@ -0,0 +1,18 @@
+{% extends "paperless-ngx/base.html" %}
+{% load i18n %}
+
+{% block head_title %}
+    {% trans "Paperless-ngx account inactive" %}
+{% endblock head_title %}
+
+{% block form_top_content %}
+    <h4>{% translate "Account inactve." %}</h4>
+{% endblock form_top_content %}
+
+{% block form_content %}
+               {% url 'account_login' as login_url %}
+    <p>{% translate "This account is inactive." %}</p>
+    <div class="d-grid mt-3">
+        <a class="btn btn-lg btn-primary" href="{{ login_url }}">{% translate "Return to login" %}</a>
+    </div>
+{% endblock form_content %}
index dfd8b00a8873051d428226ddf48cb091eb727f9c..ed1da7376c31f4ddda96fe071e9574b427e71c7a 100644 (file)
@@ -2,7 +2,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: paperless-ngx\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2025-03-06 14:43-0800\n"
+"POT-Creation-Date: 2025-03-06 14:46-0800\n"
 "PO-Revision-Date: 2022-02-17 04:17\n"
 "Last-Translator: \n"
 "Language-Team: English\n"
@@ -1194,6 +1194,22 @@ msgstr ""
 msgid "Invalid variable detected."
 msgstr ""
 
+#: documents/templates/account/account_inactive.html:5
+msgid "Paperless-ngx account inactive"
+msgstr ""
+
+#: documents/templates/account/account_inactive.html:9
+msgid "Account inactve."
+msgstr ""
+
+#: documents/templates/account/account_inactive.html:14
+msgid "This account is inactive."
+msgstr ""
+
+#: documents/templates/account/account_inactive.html:16
+msgid "Return to login"
+msgstr ""
+
 #: documents/templates/account/email/base_message.txt:1
 #, python-format
 msgid "Hello from %(site_name)s!"
@@ -1698,7 +1714,7 @@ msgstr ""
 msgid "Chinese Traditional"
 msgstr ""
 
-#: paperless/urls.py:369
+#: paperless/urls.py:374
 msgid "Paperless-ngx administration"
 msgstr ""
 
index 4c81a4e48d65488d080e0f62f311695b6158c594..39819fd3d1a889c02347b3cfc2ec10e8b327f0da 100644 (file)
@@ -278,10 +278,15 @@ urlpatterns = [
         include(
             [
                 # see allauth/account/urls.py
-                # login, logout, signup
+                # login, logout, signup, account_inactive
                 path("login/", allauth_account_views.login, name="account_login"),
                 path("logout/", allauth_account_views.logout, name="account_logout"),
                 path("signup/", allauth_account_views.signup, name="account_signup"),
+                path(
+                    "account_inactive/",
+                    allauth_account_views.account_inactive,
+                    name="account_inactive",
+                ),
                 # password reset
                 path(
                     "password/",