From 3113257097014c800c6a35601f9120618badf8df Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Fri, 17 Sep 2021 01:16:08 +0200 Subject: [PATCH] Implements language selector and some lang list improvements --- auth/assets/public/style.css | 4 +++ auth/assets/templates/profile.html.tpl | 22 +++++++++++++++ auth/handlers/handle_profile.go | 27 +++++++++++++++--- pkg/locale/locale.go | 7 +++-- pkg/locale/service.go | 39 +++++++++++++++++++++++++- system/rest/locales.go | 16 +---------- system/rest/user.go | 6 +++- system/types/user.go | 2 ++ 8 files changed, 99 insertions(+), 24 deletions(-) diff --git a/auth/assets/public/style.css b/auth/assets/public/style.css index f80c8cf84..75ce77af9 100644 --- a/auth/assets/public/style.css +++ b/auth/assets/public/style.css @@ -93,6 +93,10 @@ a:hover { padding: 1.25rem 0.75rem; } +select.form-control { + padding: 0 0.5rem; +} + .form-control:focus { box-shadow: none; border-color: var(--primary); diff --git a/auth/assets/templates/profile.html.tpl b/auth/assets/templates/profile.html.tpl index 3ed689ff0..ffc680213 100644 --- a/auth/assets/templates/profile.html.tpl +++ b/auth/assets/templates/profile.html.tpl @@ -61,6 +61,28 @@ aria-label="{{ tr "profile.template.form.handle.label" }}"> + +
+ + +
+