From 1a3bf16729cf6866d8fedc91e7a575d09255c2cf Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Wed, 22 Jul 2015 10:04:04 +0200 Subject: [PATCH] KEYCLOAK-1434 Change edit action to buttons to make sure styles are correct --- .../theme/base/admin/resources/js/app.js | 16 ++++++++++++++++ .../admin/resources/partials/client-list.html | 2 +- .../resources/partials/client-role-list.html | 6 +++++- .../partials/realm-identity-provider.html | 2 +- .../base/admin/resources/partials/role-list.html | 2 +- .../resources/partials/user-federation.html | 2 +- .../base/admin/resources/partials/user-list.html | 2 +- .../keycloak/admin/resources/css/styles.css | 4 ---- 8 files changed, 26 insertions(+), 10 deletions(-) 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 f26a8edb319..5ddf659deb2 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 @@ -1842,4 +1842,20 @@ module.directive('kcTooltip', function($compile) { $compile(label)(scope); } }; +}); + +module.directive( 'kcOpen', function ( $location ) { + return function ( scope, element, attrs ) { + var path; + + attrs.$observe( 'kcOpen', function (val) { + path = val; + }); + + element.bind( 'click', function () { + scope.$apply( function () { + $location.path(path); + }); + }); + }; }); \ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/client-list.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/client-list.html index b317a70da8e..9c1cb149c32 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/client-list.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/client-list.html @@ -41,7 +41,7 @@ Not defined - Edit + diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/client-role-list.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/client-role-list.html index bf4f06201fe..f07d9e3fc25 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/client-role-list.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/client-role-list.html @@ -10,7 +10,7 @@ - + @@ -27,6 +28,9 @@ + diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider.html index f0843474748..8c817bc4332 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/realm-identity-provider.html @@ -35,7 +35,7 @@ diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/role-list.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/role-list.html index b2260f4cbdd..3703023a54d 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/role-list.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/role-list.html @@ -39,7 +39,7 @@ diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/user-federation.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/user-federation.html index 13e2f868806..8738690c812 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/user-federation.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/user-federation.html @@ -31,7 +31,7 @@ diff --git a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/user-list.html b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/user-list.html index 547530c639e..508e07f4e60 100755 --- a/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/user-list.html +++ b/forms/common-themes/src/main/resources/theme/base/admin/resources/partials/user-list.html @@ -51,7 +51,7 @@
+ @@ -20,6 +20,7 @@ Role Name Composite DescriptionActions
{{role.name}} {{role.composite}} {{role.description}} + +
No client roles available{{identityProvider.enabled}} {{identityProvider.config.guiOrder}} - Edit +
{{role.composite}} {{role.description}} - Edit +
{{instance.providerName|capitalize}} {{instance.priority}} - Edit +
{{user.firstName}} {{user.email}} - Edit + diff --git a/forms/common-themes/src/main/resources/theme/keycloak/admin/resources/css/styles.css b/forms/common-themes/src/main/resources/theme/keycloak/admin/resources/css/styles.css index 9bf8af23361..83f09293f11 100644 --- a/forms/common-themes/src/main/resources/theme/keycloak/admin/resources/css/styles.css +++ b/forms/common-themes/src/main/resources/theme/keycloak/admin/resources/css/styles.css @@ -312,8 +312,4 @@ h1 i { left: 0; right: 0; bottom: 0; -} - -.kc-action-cell a { - padding-top: 4px; } \ No newline at end of file