From 3349e9ff6cf080609a03de03103b0efb94015fc6 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 27 Jul 2021 00:58:31 +1000 Subject: [PATCH] Refactor language selection --- .../InvenTree/settings/appearance.html | 4 +++ .../InvenTree/settings/settings.html | 1 - .../templates/InvenTree/settings/user.html | 27 +++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/InvenTree/templates/InvenTree/settings/appearance.html b/InvenTree/templates/InvenTree/settings/appearance.html index b8d8923859..7c4d3a067e 100644 --- a/InvenTree/templates/InvenTree/settings/appearance.html +++ b/InvenTree/templates/InvenTree/settings/appearance.html @@ -37,6 +37,10 @@ +
+

{% trans "Language Settings" %}

+
+
{% csrf_token %} diff --git a/InvenTree/templates/InvenTree/settings/settings.html b/InvenTree/templates/InvenTree/settings/settings.html index 6405968674..246f36a0b4 100644 --- a/InvenTree/templates/InvenTree/settings/settings.html +++ b/InvenTree/templates/InvenTree/settings/settings.html @@ -15,7 +15,6 @@ {% block content %} {% include "InvenTree/settings/user.html" %} -{% include "InvenTree/settings/appearance.html" %} {% include "InvenTree/settings/user_settings.html" %} {% if user.is_staff %} diff --git a/InvenTree/templates/InvenTree/settings/user.html b/InvenTree/templates/InvenTree/settings/user.html index bc1d5c7699..25df98475a 100644 --- a/InvenTree/templates/InvenTree/settings/user.html +++ b/InvenTree/templates/InvenTree/settings/user.html @@ -1,6 +1,7 @@ {% extends "panel.html" %} {% load i18n %} +{% load inventree_extras %} {% block label %}account{% endblock %} @@ -36,4 +37,30 @@ {{ user.email }} +
+

{% trans "Language Settings" %}

+
+ +
+ + {% csrf_token %} + +
+ +
+
+ +
+ +
+ {% endblock %} \ No newline at end of file