diff --git a/InvenTree/templates/InvenTree/settings/user.html b/InvenTree/templates/InvenTree/settings/user.html index d6cbf998a7..4d6c33b222 100644 --- a/InvenTree/templates/InvenTree/settings/user.html +++ b/InvenTree/templates/InvenTree/settings/user.html @@ -47,51 +47,53 @@

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

- {% csrf_token %} + {% csrf_token %}
- {% for emailaddress in user.emailaddress_set.all %} + {% for emailaddress in user.emailaddress_set.all %}
-
- {% endfor %} + {% endfor %} -
- - - -
+
+ + + +
{% else %}

{% trans 'Warning:'%} - {% trans "You currently do not have any email address set up. You should really add an email address so you can receive notifications, reset your password, etc." %} + {% trans "You currently do not have any email address set up. You should really add an email address so you can + receive notifications, reset your password, etc." %}

{% endif %} {% if can_add_email %} -
-

{% trans "Add Email Address" %}

+
+
{% trans "Add Email Address" %}
-
- {% csrf_token %} - {{ add_email_form|crispy }} - -
+
+ {% csrf_token %} + {{ add_email_form|crispy }} + +
{% endif %}
@@ -103,37 +105,39 @@
{% 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 %} -
- -
- -
- + + + {% 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 %} @@ -141,7 +145,7 @@

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

- {% include "socialaccount/snippets/provider_list.html" with process="connect" %} + {% include "socialaccount/snippets/provider_list.html" with process="connect" %}
{% include "socialaccount/snippets/login_extra.html" %}
@@ -186,25 +190,29 @@
{% csrf_token %} -
- + {% get_current_language as LANGUAGE_CODE %} + {% get_available_languages as LANGUAGES %} + {% get_language_info_list for LANGUAGES as languages %} + {% for language in languages %} + {% define language.code as lang_code %} + {% define locale_stats|keyvalue:lang_code as lang_translated %} + - {% endfor %} - -
+ {% endif %} + + {% endfor %} + +
+ +
@@ -212,7 +220,9 @@

{% trans "Help the translation efforts!" %}

-

{% blocktrans with link="https://crowdin.com/project/inventree" %}Native language translation of the InvenTree web application is community contributed via crowdin. Contributions are welcomed and encouraged.{% endblocktrans %}

+

{% blocktrans with link="https://crowdin.com/project/inventree" %}Native language translation of the + InvenTree web application is community contributed via crowdin. Contributions are + welcomed and encouraged.{% endblocktrans %}

@@ -220,14 +230,14 @@ {% block js_ready %} (function() { - var message = "{% trans 'Do you really want to remove the selected email address?' %}"; - var actions = document.getElementsByName('action_remove'); - if (actions.length) { - actions[0].addEventListener("click", function(e) { - if (! confirm(message)) { - e.preventDefault(); - } - }); - } +var message = "{% trans 'Do you really want to remove the selected email address?' %}"; +var actions = document.getElementsByName('action_remove'); +if (actions.length) { +actions[0].addEventListener("click", function(e) { +if (! confirm(message)) { +e.preventDefault(); +} +}); +} })(); {% endblock %} \ No newline at end of file