From 91275fbacea318836c4a8b057d8e864b5a778f8e Mon Sep 17 00:00:00 2001 From: Edoardo Spadoni Date: Thu, 11 Jan 2024 12:16:14 +0100 Subject: [PATCH] wizard ui. added link to external user portal --- wizard/app/scripts/controllers/extensions.js | 2 ++ wizard/app/scripts/i18n/locale-en.json | 4 +++- wizard/app/scripts/i18n/locale-it.json | 4 +++- wizard/app/styles/main.css | 13 +++++++++++++ wizard/app/views/extensions.html | 8 +++++++- 5 files changed, 28 insertions(+), 3 deletions(-) diff --git a/wizard/app/scripts/controllers/extensions.js b/wizard/app/scripts/controllers/extensions.js index b87684e8..b1592808 100644 --- a/wizard/app/scripts/controllers/extensions.js +++ b/wizard/app/scripts/controllers/extensions.js @@ -21,6 +21,7 @@ angular.module('nethvoiceWizardUiApp') $scope.usersFilterNumbersOrd = false; $scope.view.changeRoute = true; $scope.usersLimit = 20 + $scope.localDomain = ""; $scope.error = { file: { @@ -55,6 +56,7 @@ angular.module('nethvoiceWizardUiApp') $scope.checkUserProviderStatus = function () { ConfigService.getConfig().then(function (res) { $scope.view.changeRoute = false; + $scope.localDomain = res.data.domain; if (res.data.configured === 0) { $scope.showConfigSwitch = true; $location.path('/users'); diff --git a/wizard/app/scripts/i18n/locale-en.json b/wizard/app/scripts/i18n/locale-en.json index 2afbcedf..a6e370df 100644 --- a/wizard/app/scripts/i18n/locale-en.json +++ b/wizard/app/scripts/i18n/locale-en.json @@ -151,5 +151,7 @@ "expkey_label": "Exp key", "progkey_label": "Label", "upload_invalid_filename": "The file name is not valid. It can only contain letters, numbers and the symbols _ - . ( ) ", - "Spy":"Listen" + "Spy":"Listen", + "Link to portal text": "For user management (creation, update and deletion), use the dedicated portal", + "Link to portal": "Link to the Portal" } diff --git a/wizard/app/scripts/i18n/locale-it.json b/wizard/app/scripts/i18n/locale-it.json index efbf2afe..226f014f 100644 --- a/wizard/app/scripts/i18n/locale-it.json +++ b/wizard/app/scripts/i18n/locale-it.json @@ -1067,5 +1067,7 @@ "Click on the button below to add you first gateway": "Clicca sul pulsante qui sotto per aggiungere il tuo primo gateway", "Download config": "Scarica config", "Push config": "Carica config", - "Enables access to NethVoice CTI application": "Consenti l'accesso all'applicazione NethVoice CTI" + "Enables access to NethVoice CTI application": "Consenti l'accesso all'applicazione NethVoice CTI", + "Link to portal text": "Per la gestione degli utenti (creazione, modifica e eliminazione), utilizzare il portale dedicato", + "Link to portal": "Link al Portale" } diff --git a/wizard/app/styles/main.css b/wizard/app/styles/main.css index 171e6def..3a0da456 100644 --- a/wizard/app/styles/main.css +++ b/wizard/app/styles/main.css @@ -1037,6 +1037,19 @@ a { margin-top: 28px; } +.adjust-filter-label { + margin-top: 10px; +} + +.adjust-creation-info { + margin-bottom: -25px; +} + +.adjust-portal-link { + float: inline-end; + margin-top: -3px; +} + .check-results { margin-top: 8px; padding-left: 1px; diff --git a/wizard/app/views/extensions.html b/wizard/app/views/extensions.html index 532845b6..0a42dd31 100644 --- a/wizard/app/views/extensions.html +++ b/wizard/app/views/extensions.html @@ -11,6 +11,12 @@

{{'Extensions Configuration' | translate}}

+ +
+ + {{'Link to portal text' | translate}}: {{'Link to portal' | translate}} +
+
-
{{'Filter' | translate}}:
+
{{'Filter' | translate}}: