From 19583dfe1871437e5555b299c7f82a3758b088e6 Mon Sep 17 00:00:00 2001 From: Ngure Nyaga Date: Thu, 15 Jul 2021 16:17:07 +0300 Subject: [PATCH] feat: turn off sidenav for all account related pages --- pepfar_mle/templates/account/account_inactive.html | 9 +++++++++ pepfar_mle/templates/account/base.html | 2 +- pepfar_mle/templates/account/email.html | 9 +++++++++ pepfar_mle/templates/account/email_confirm.html | 8 ++++++++ pepfar_mle/templates/account/password_change.html | 10 ++++++++++ pepfar_mle/templates/account/password_reset.html | 1 - pepfar_mle/templates/account/password_reset_done.html | 10 ++++++++++ .../templates/account/password_reset_from_key.html | 8 ++++++++ .../account/password_reset_from_key_done.html | 10 ++++++++++ pepfar_mle/templates/account/password_set.html | 8 ++++++++ pepfar_mle/templates/account/signup_closed.html | 9 +++++++++ pepfar_mle/templates/account/verification_sent.html | 8 ++++++++ .../templates/account/verified_email_required.html | 8 ++++++++ 13 files changed, 98 insertions(+), 2 deletions(-) diff --git a/pepfar_mle/templates/account/account_inactive.html b/pepfar_mle/templates/account/account_inactive.html index 585b38c2..39d9a473 100644 --- a/pepfar_mle/templates/account/account_inactive.html +++ b/pepfar_mle/templates/account/account_inactive.html @@ -4,6 +4,15 @@ {% block head_title %}{% trans "Account Inactive" %}{% endblock %} +{% block bodyclass %} + class="bg-gradient-primary" +{% endblock %} + +{% block page %} + {# no modal #} +{% endblock page %} + + {% block inner %}

{% trans "Account Inactive" %}

diff --git a/pepfar_mle/templates/account/base.html b/pepfar_mle/templates/account/base.html index 8e1f260e..359456df 100644 --- a/pepfar_mle/templates/account/base.html +++ b/pepfar_mle/templates/account/base.html @@ -4,7 +4,7 @@ {% block content %}
- {% block inner %}{% endblock %} + {% block inner %}{% endblock inner %}
{% endblock %} diff --git a/pepfar_mle/templates/account/email.html b/pepfar_mle/templates/account/email.html index a2d83efe..71e12e8c 100644 --- a/pepfar_mle/templates/account/email.html +++ b/pepfar_mle/templates/account/email.html @@ -6,6 +6,15 @@ {% block head_title %}{% trans "Account" %}{% endblock %} +{% block bodyclass %} + class="bg-gradient-primary" +{% endblock %} + +{% block page %} + {# no modal #} +{% endblock page %} + + {% block inner %}

{% trans "E-mail Addresses" %}

diff --git a/pepfar_mle/templates/account/email_confirm.html b/pepfar_mle/templates/account/email_confirm.html index 2b0dd41f..2c0842e9 100644 --- a/pepfar_mle/templates/account/email_confirm.html +++ b/pepfar_mle/templates/account/email_confirm.html @@ -5,6 +5,14 @@ {% block head_title %}{% trans "Confirm E-mail Address" %}{% endblock %} +{% block bodyclass %} + class="bg-gradient-primary" +{% endblock %} + +{% block page %} + {# no modal #} +{% endblock page %} + {% block inner %}

{% trans "Confirm E-mail Address" %}

diff --git a/pepfar_mle/templates/account/password_change.html b/pepfar_mle/templates/account/password_change.html index c96fcfda..6e522018 100644 --- a/pepfar_mle/templates/account/password_change.html +++ b/pepfar_mle/templates/account/password_change.html @@ -5,6 +5,16 @@ {% block head_title %}{% trans "Change Password" %}{% endblock %} + +{% block bodyclass %} + class="bg-gradient-primary" +{% endblock %} + +{% block page %} + {# no modal #} +{% endblock page %} + + {% block inner %}

{% trans "Change Password" %}

diff --git a/pepfar_mle/templates/account/password_reset.html b/pepfar_mle/templates/account/password_reset.html index b475196b..b914271a 100644 --- a/pepfar_mle/templates/account/password_reset.html +++ b/pepfar_mle/templates/account/password_reset.html @@ -14,7 +14,6 @@ {# no modal #} {% endblock page %} - {% block inner %}
diff --git a/pepfar_mle/templates/account/password_reset_done.html b/pepfar_mle/templates/account/password_reset_done.html index 67cd615c..83019098 100644 --- a/pepfar_mle/templates/account/password_reset_done.html +++ b/pepfar_mle/templates/account/password_reset_done.html @@ -5,6 +5,16 @@ {% block head_title %}{% trans "Password Reset" %}{% endblock %} + +{% block bodyclass %} + class="bg-gradient-primary" +{% endblock %} + +{% block page %} + {# no modal #} +{% endblock page %} + + {% block inner %}

{% trans "Password Reset" %}

diff --git a/pepfar_mle/templates/account/password_reset_from_key.html b/pepfar_mle/templates/account/password_reset_from_key.html index 882540f7..ba805c72 100644 --- a/pepfar_mle/templates/account/password_reset_from_key.html +++ b/pepfar_mle/templates/account/password_reset_from_key.html @@ -4,6 +4,14 @@ {% load crispy_forms_tags %} {% block head_title %}{% trans "Change Password" %}{% endblock %} +{% block bodyclass %} + class="bg-gradient-primary" +{% endblock %} + +{% block page %} + {# no modal #} +{% endblock page %} + {% block inner %}

{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}

diff --git a/pepfar_mle/templates/account/password_reset_from_key_done.html b/pepfar_mle/templates/account/password_reset_from_key_done.html index ebc8c254..7023b6c8 100644 --- a/pepfar_mle/templates/account/password_reset_from_key_done.html +++ b/pepfar_mle/templates/account/password_reset_from_key_done.html @@ -3,6 +3,16 @@ {% load i18n %} {% block head_title %}{% trans "Change Password" %}{% endblock %} + +{% block bodyclass %} + class="bg-gradient-primary" +{% endblock %} + +{% block page %} + {# no modal #} +{% endblock page %} + + {% block inner %}

{% trans "Change Password" %}

{% trans 'Your password is now changed.' %}

diff --git a/pepfar_mle/templates/account/password_set.html b/pepfar_mle/templates/account/password_set.html index 6a45ece9..e81acb8c 100644 --- a/pepfar_mle/templates/account/password_set.html +++ b/pepfar_mle/templates/account/password_set.html @@ -5,6 +5,14 @@ {% block head_title %}{% trans "Set Password" %}{% endblock %} +{% block bodyclass %} + class="bg-gradient-primary" +{% endblock %} + +{% block page %} + {# no modal #} +{% endblock page %} + {% block inner %}

{% trans "Set Password" %}

diff --git a/pepfar_mle/templates/account/signup_closed.html b/pepfar_mle/templates/account/signup_closed.html index ebcd8453..fedbc8f5 100644 --- a/pepfar_mle/templates/account/signup_closed.html +++ b/pepfar_mle/templates/account/signup_closed.html @@ -4,6 +4,15 @@ {% block head_title %}{% trans "Sign Up Closed" %}{% endblock %} +{% block bodyclass %} + class="bg-gradient-primary" +{% endblock %} + +{% block page %} + {# no modal #} +{% endblock page %} + + {% block inner %}

{% trans "Sign Up Closed" %}

diff --git a/pepfar_mle/templates/account/verification_sent.html b/pepfar_mle/templates/account/verification_sent.html index d4fb9e93..0ea7e19f 100644 --- a/pepfar_mle/templates/account/verification_sent.html +++ b/pepfar_mle/templates/account/verification_sent.html @@ -4,6 +4,14 @@ {% block head_title %}{% trans "Verify Your E-mail Address" %}{% endblock %} +{% block bodyclass %} + class="bg-gradient-primary" +{% endblock %} + +{% block page %} + {# no modal #} +{% endblock page %} + {% block inner %}

{% trans "Verify Your E-mail Address" %}

diff --git a/pepfar_mle/templates/account/verified_email_required.html b/pepfar_mle/templates/account/verified_email_required.html index 0f11412a..e10b5b37 100644 --- a/pepfar_mle/templates/account/verified_email_required.html +++ b/pepfar_mle/templates/account/verified_email_required.html @@ -4,6 +4,14 @@ {% block head_title %}{% trans "Verify Your E-mail Address" %}{% endblock %} +{% block bodyclass %} + class="bg-gradient-primary" +{% endblock %} + +{% block page %} + {# no modal #} +{% endblock page %} + {% block inner %}

{% trans "Verify Your E-mail Address" %}