From f1ddaa805172ff11916b9f78d3dff6774999a2a1 Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Tue, 7 Jul 2015 11:31:28 -0400 Subject: [PATCH] config directive --- .../theme/base/admin/resources/js/app.js | 12 ++++++++++++ .../partials/authenticator-config.html | 18 +----------------- .../identity-provider-mapper-detail.html | 18 +----------------- .../partials/protocol-mapper-detail.html | 18 +----------------- .../templates/kc-provider-config.html | 16 ++++++++++++++++ 5 files changed, 31 insertions(+), 51 deletions(-) create mode 100755 forms/common-themes/src/main/resources/theme/base/admin/resources/templates/kc-provider-config.html diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/js/app.js b/forms/common-themes/src/main/resources/theme/base/admin/resources/js/app.js index eb34666604..6a97f7cb24 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/js/app.js +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/js/app.js @@ -1579,6 +1579,18 @@ module.directive('kcNavigationUser', function () { } }); +module.directive('kcProviderConfig', function () { + return { + scope: { + config: '=', + properties: '=' + }, + restrict: 'E', + replace: true, + templateUrl: resourceUrl + '/templates/kc-provider-config.html' + } +}); + /* * Used to select the element (invoke $(elem).select()) on specified action list. * Usages kc-select-action="click mouseover" diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/authenticator-config.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/authenticator-config.html index a093240616..d6f3700083 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/authenticator-config.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/authenticator-config.html @@ -26,23 +26,7 @@ Name of the configuration. -
- - -
- -
-
- -
-
- -
- {{option.helpText}} -
- +
diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/identity-provider-mapper-detail.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/identity-provider-mapper-detail.html index 48bc1dd880..80b8d45432 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/identity-provider-mapper-detail.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/identity-provider-mapper-detail.html @@ -45,23 +45,7 @@
{{mapperType.helpText}} -
- - -
- -
-
- -
-
- -
- {{option.helpText}} -
- +
diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/protocol-mapper-detail.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/protocol-mapper-detail.html index 5f08b89f31..4697245cac 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/protocol-mapper-detail.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/protocol-mapper-detail.html @@ -69,23 +69,7 @@
{{mapperType.helpText}} -
- - -
- -
-
- -
-
- -
- {{option.helpText}} -
- +
diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/templates/kc-provider-config.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/templates/kc-provider-config.html new file mode 100755 index 0000000000..31ac3be50c --- /dev/null +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/templates/kc-provider-config.html @@ -0,0 +1,16 @@ +
+ + +
+ +
+
+ +
+
+ +
+ {{option.helpText}} +