{% extends "panel.html" %} {% load i18n %} {% load inventree_extras %} {% load socialaccount %} {% load crispy_forms_tags %} {% block label %}account{% endblock %} {% block heading %} {% trans "Account Settings" %} {% endblock %} {% block content %} {% mail_configured as mail_conf %}
{% trans "Edit" %}
{% trans "Set Password" %}
{% trans "Username" %} {{ user.username }}
{% trans "First Name" %} {{ user.first_name }}
{% trans "Last Name" %} {{ user.last_name }}

{% trans "E-Mail" %}

{% if user.emailaddress_set.all %}

{% trans 'The following e-mail addresses are associated with your account:' %}

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

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

{% endif %} {% if can_add_email %}

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

{% csrf_token %} {{ 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" %}

{% trans "Theme Settings" %}

{% csrf_token %}

{% trans "Language Settings" %}

{% csrf_token %}

{% 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 %}

{% endblock %} {% block js_ready %} (function() { var message = "{% trans 'Do you really want to remove the selected e-mail address?' %}"; var actions = document.getElementsByName('action_remove'); if (actions.length) { actions[0].addEventListener("click", function(e) { if (! confirm(message)) { e.preventDefault(); } }); } })(); {% endblock %}