From ec17bbcb95b8d4bd017cb408c54fc7cbc3fde465 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 31 Oct 2021 13:54:12 +0100 Subject: [PATCH] mkaeuser setting tighter --- .../templates/InvenTree/settings/user.html | 134 +++++++++--------- 1 file changed, 68 insertions(+), 66 deletions(-) diff --git a/InvenTree/templates/InvenTree/settings/user.html b/InvenTree/templates/InvenTree/settings/user.html index 4d6c33b222..2813590b23 100644 --- a/InvenTree/templates/InvenTree/settings/user.html +++ b/InvenTree/templates/InvenTree/settings/user.html @@ -38,11 +38,12 @@ -
-

{% trans "Email" %}

-
+
+
+

{% trans "Email" %}

+
-
+
{% if user.emailaddress_set.all %}

{% trans 'The following email addresses are associated with your account:' %}

@@ -84,9 +85,10 @@

{% endif %} +
{% if can_add_email %} -
+
{% trans "Add Email Address" %}
@@ -94,70 +96,70 @@ {{ add_email_form|crispy }}
- {% endif %} -
-
- -
-

{% trans "Social Accounts" %}

-
- -
- {% if social_form.accounts %} -

{% blocktrans %}You can sign in to your account using any of the following third party accounts:{% endblocktrans %}

- - -
- {% csrf_token %} - -
- {% if social_form.non_field_errors %} -
{{ social_form.non_field_errors }}
- {% endif %} - - {% for base_account in social_form.accounts %} - {% with base_account.get_provider_account as account %} -
- -
- {% endwith %} - {% endfor %} - -
- -
- -
- -
- - {% else %} -

{% trans 'You currently have no social network accounts connected to this account.' %}

- {% endif %} - -
-

{% trans 'Add a 3rd Party Account' %}

-
- {% include "socialaccount/snippets/provider_list.html" with process="connect" %}
- {% include "socialaccount/snippets/login_extra.html" %} -
- + {% endif %}
+
+
+

{% trans "Social Accounts" %}

+
-
-

{% trans "Theme Settings" %}

+
+ {% if social_form.accounts %} +

{% blocktrans %}You can sign in to your account using any of the following third party accounts:{% endblocktrans %}

+ + +
+ {% csrf_token %} + +
+ {% if social_form.non_field_errors %} +
{{ social_form.non_field_errors }}
+ {% endif %} + + {% for base_account in social_form.accounts %} + {% with base_account.get_provider_account as account %} +
+ +
+ {% endwith %} + {% endfor %} + +
+ +
+ +
+ +
+ + {% else %} +

{% trans 'You currently have no social network accounts connected to this account.' %}

+ {% endif %} +
+ +
+
{% trans 'Add a 3rd Party Account' %}
+
+ {% include "socialaccount/snippets/provider_list.html" with process="connect" %} +
+ {% include "socialaccount/snippets/login_extra.html" %} +
+
+
+

{% trans "Theme Settings" %}

+
{% csrf_token %} @@ -181,11 +183,11 @@
-
-

{% trans "Language Settings" %}

-
-
+
+

{% trans "Language Settings" %}

+
+
{% csrf_token %}