From ecfde95a94054a4279630f65df728aa9098d173d Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Fri, 11 Jan 2019 23:23:53 -0500 Subject: [PATCH] Refactoring of providers UI in settings and wizard. Removec the ugly alert when savong settings and replacing it with a notification. --- bazarr/main.py | 5 +- views/settings.tpl | 256 ++++++++++++++++++++++++++++++++++++--------- views/wizard.tpl | 234 +++++++++++++++++++++++++++++++++++++++-- 3 files changed, 436 insertions(+), 59 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index cbf1b6b3e..82d667c2a 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -1287,7 +1287,10 @@ def save_settings(): # reschedule full update task according to settings sonarr_full_update() - redirect(ref) + if ref.find('saved=true') > 0: + redirect(ref) + else: + redirect(ref + "?saved=true") @route(base_url + 'check_update') diff --git a/views/settings.tpl b/views/settings.tpl index 460815458..1fd5d96bd 100644 --- a/views/settings.tpl +++ b/views/settings.tpl @@ -40,7 +40,7 @@
-
Loading...
+
Saving settings...
% include('menu.tpl') @@ -1062,86 +1062,196 @@
- +
-
-
- +
+
+ +
-
-
-
Providers authentication (optional)
-
-
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ + +
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
-
-
-

Username

+
+
+ +
-
-
-

Password (stored in clear text)

+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
- +
-
-
- +
+
+ +
-
-
- +
+
+ +
+ +
+
+ +
+
+
+ +
+
+ +
+
- +
-
-
- +
+
+ +
-
-
- +
+
+ +
+ +
+
+ +
+
+
+ +
+
+ +
+
- +
-
-
- +
+
+ +
-
-
- +
+
+ +
+ + +
+
+
@@ -1348,6 +1458,33 @@