From 610bc95d420951533ff3e8a34bf8cdca8b9ee00a Mon Sep 17 00:00:00 2001 From: Alihassanc5 Date: Tue, 1 Nov 2022 16:06:58 +0500 Subject: [PATCH 1/4] Admin Panel login page title changed --- iogt/templates/wagtailadmin/login.html | 107 +++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 iogt/templates/wagtailadmin/login.html diff --git a/iogt/templates/wagtailadmin/login.html b/iogt/templates/wagtailadmin/login.html new file mode 100644 index 000000000..fae14648c --- /dev/null +++ b/iogt/templates/wagtailadmin/login.html @@ -0,0 +1,107 @@ +{% extends "wagtailadmin/admin_base.html" %} +{% load i18n wagtailadmin_tags %} +{% block titletag %}{% trans "Sign in" %}{% endblock %} +{% block bodyclass %}login{% endblock %} + +{% block extra_css %} + {{ block.super }} + + +{% endblock %} + +{% block furniture %} +
+ {% if messages or form.errors %} +
+
    + {% if form.errors %} +
  • {% blocktrans %}Your {{ username_field }} and password didn't match. Please try again.{% endblocktrans %}
  • + {% endif %} + {% for message in messages %} +
  • {{ message }}
  • + {% endfor %} +
+
+ {% endif %} + + {% block above_login %}{% endblock %} + +
+ {% block login_form %} + {% csrf_token %} + + {% url 'wagtailadmin_home' as home_url %} + + +

{% block branding_login %}{% trans "Sign in to the IoGT Wagtail CMS" %}{% endblock %}

+ +
+
    + {% block fields %} +
  • +
    + {{ form.username.label_tag }} +
    + {{ form.username }} +
    +
    +
  • +
  • +
    + {{ form.password.label_tag }} +
    + {{ form.password }} +
    +
    +
  • + + {% block extra_fields %} + {% for field_name, field in form.extra_fields %}gs +
  • + {{ field.label_tag }} +
    + {{ field }} +
    +
  • + {% endfor %} + {% endblock extra_fields %} + + {% comment %} + Removed until functionality exists +
  • +
    + +
    +
  • + {% endcomment %} + {% endblock %} + +
  • + {% block submit_buttons %} + + {% endblock %} +
  • +
+ + {% if show_password_reset %} +

+ {% trans "Forgotten password?" %} +

+ {% endif %} +
+ {% endblock %} +
+ + {% block below_login %}{% endblock %} + +
+{% endblock %} + +{% block extra_js %} +{{ block.super }} + +{% endblock %} From b9e89f43c86e179068e6e7a27ac17399757f509c Mon Sep 17 00:00:00 2001 From: Alihassanc5 Date: Tue, 1 Nov 2022 16:18:50 +0500 Subject: [PATCH 2/4] minor changes --- iogt/templates/wagtailadmin/login.html | 107 +------------------------ 1 file changed, 2 insertions(+), 105 deletions(-) diff --git a/iogt/templates/wagtailadmin/login.html b/iogt/templates/wagtailadmin/login.html index fae14648c..68cba8262 100644 --- a/iogt/templates/wagtailadmin/login.html +++ b/iogt/templates/wagtailadmin/login.html @@ -1,107 +1,4 @@ -{% extends "wagtailadmin/admin_base.html" %} +{% extends "wagtailadmin/login.html" %} {% load i18n wagtailadmin_tags %} -{% block titletag %}{% trans "Sign in" %}{% endblock %} -{% block bodyclass %}login{% endblock %} -{% block extra_css %} - {{ block.super }} - - -{% endblock %} - -{% block furniture %} -
- {% if messages or form.errors %} -
-
    - {% if form.errors %} -
  • {% blocktrans %}Your {{ username_field }} and password didn't match. Please try again.{% endblocktrans %}
  • - {% endif %} - {% for message in messages %} -
  • {{ message }}
  • - {% endfor %} -
-
- {% endif %} - - {% block above_login %}{% endblock %} - -
- {% block login_form %} - {% csrf_token %} - - {% url 'wagtailadmin_home' as home_url %} - - -

{% block branding_login %}{% trans "Sign in to the IoGT Wagtail CMS" %}{% endblock %}

- -
-
    - {% block fields %} -
  • -
    - {{ form.username.label_tag }} -
    - {{ form.username }} -
    -
    -
  • -
  • -
    - {{ form.password.label_tag }} -
    - {{ form.password }} -
    -
    -
  • - - {% block extra_fields %} - {% for field_name, field in form.extra_fields %}gs -
  • - {{ field.label_tag }} -
    - {{ field }} -
    -
  • - {% endfor %} - {% endblock extra_fields %} - - {% comment %} - Removed until functionality exists -
  • -
    - -
    -
  • - {% endcomment %} - {% endblock %} - -
  • - {% block submit_buttons %} - - {% endblock %} -
  • -
- - {% if show_password_reset %} -

- {% trans "Forgotten password?" %} -

- {% endif %} -
- {% endblock %} -
- - {% block below_login %}{% endblock %} - -
-{% endblock %} - -{% block extra_js %} -{{ block.super }} - -{% endblock %} +

{% block branding_login %}{% trans "Sign in to the IoGT Wagtail CMS" %}{% endblock %}

\ No newline at end of file From b16ade3306f53772c5c46f35b6a077953d6430c3 Mon Sep 17 00:00:00 2001 From: Alihassanc5 Date: Tue, 1 Nov 2022 16:19:57 +0500 Subject: [PATCH 3/4] added new blank line --- iogt/templates/wagtailadmin/login.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iogt/templates/wagtailadmin/login.html b/iogt/templates/wagtailadmin/login.html index 68cba8262..7c0fe68fd 100644 --- a/iogt/templates/wagtailadmin/login.html +++ b/iogt/templates/wagtailadmin/login.html @@ -1,4 +1,4 @@ {% extends "wagtailadmin/login.html" %} {% load i18n wagtailadmin_tags %} -

{% block branding_login %}{% trans "Sign in to the IoGT Wagtail CMS" %}{% endblock %}

\ No newline at end of file +

{% block branding_login %}{% trans "Sign in to the IoGT Wagtail CMS" %}{% endblock %}

From ba9f96b90363d7d449f6d158d7bfec70a76e33d5 Mon Sep 17 00:00:00 2001 From: Alihassanc5 Date: Tue, 1 Nov 2022 16:30:36 +0500 Subject: [PATCH 4/4] minor change --- iogt/templates/wagtailadmin/login.html | 1 + 1 file changed, 1 insertion(+) diff --git a/iogt/templates/wagtailadmin/login.html b/iogt/templates/wagtailadmin/login.html index 7c0fe68fd..27c4096ad 100644 --- a/iogt/templates/wagtailadmin/login.html +++ b/iogt/templates/wagtailadmin/login.html @@ -1,4 +1,5 @@ {% extends "wagtailadmin/login.html" %} {% load i18n wagtailadmin_tags %} +

{% block branding_login %}{% trans "Sign in to the IoGT Wagtail CMS" %}{% endblock %}