diff --git a/admin-ui-styles/src/main/resources/META-INF/resources/admin-ui/css/admin-console.css b/admin-ui-styles/src/main/resources/META-INF/resources/admin-ui/css/admin-console.css index 6d30cdf331..2482800781 100644 --- a/admin-ui-styles/src/main/resources/META-INF/resources/admin-ui/css/admin-console.css +++ b/admin-ui-styles/src/main/resources/META-INF/resources/admin-ui/css/admin-console.css @@ -5,6 +5,12 @@ body { color: #4d5258; font-family: "Open Sans", sans-serif; } +.admin-console #content textarea { + min-width: 10em; + max-width: 74em; + min-height: 10em; + max-height: 50em; +} /* Feedback */ .feedback-aligner { top: 0.9em; diff --git a/admin-ui-styles/src/main/resources/META-INF/resources/admin-ui/css/admin-console.less b/admin-ui-styles/src/main/resources/META-INF/resources/admin-ui/css/admin-console.less index 1f49e268a3..e1e0993813 100644 --- a/admin-ui-styles/src/main/resources/META-INF/resources/admin-ui/css/admin-console.less +++ b/admin-ui-styles/src/main/resources/META-INF/resources/admin-ui/css/admin-console.less @@ -15,6 +15,15 @@ body { font-family: @open-sans; } +.admin-console { + #content textarea { + min-width: 10em; + max-width: 74em; + min-height: 10em; + max-height: 50em; + } +} + /* Feedback */ .feedback-aligner { diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/js/app.js b/admin-ui/src/main/resources/META-INF/resources/admin/js/app.js index f618052f1d..37fc3ed456 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/js/app.js +++ b/admin-ui/src/main/resources/META-INF/resources/admin/js/app.js @@ -288,6 +288,9 @@ module.config([ '$routeProvider', function($routeProvider) { realm : function(RealmLoader) { return RealmLoader(); }, + application : function(ApplicationLoader) { + return ApplicationLoader(); + }, installation : function(ApplicationInstallationLoader) { return ApplicationInstallationLoader(); } @@ -650,6 +653,28 @@ module.directive('kcReset', function ($compile, Notifications) { } }); +/* +* Used to select the element (invoke $(elem).select()) on specified action list. +* Usages kc-select-action="click mouseover" +* When used in the textarea element, this will select/highlight the textarea content on specified action (i.e. click). +*/ +module.directive('kcSelectAction', function ($compile, Notifications) { + return { + restrict: 'A', + compile: function (elem, attrs) { + + var events = attrs.kcSelectAction.split(" "); + + for(var i=0; i < events.length; i++){ + + elem.bind(events[i], function(){ + elem.select(); + }); + } + } + } +}); + module.filter('remove', function() { return function(input, remove, attribute) { if (!input || !remove) { diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/applications.js b/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/applications.js index ed435eeff1..30dde4d629 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/applications.js +++ b/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/applications.js @@ -179,8 +179,10 @@ module.controller('ApplicationListCtrl', function($scope, realm, applications, A }); }); -module.controller('ApplicationInstallationCtrl', function($scope, realm, installation, ApplicationInstallation, $routeParams) { +module.controller('ApplicationInstallationCtrl', function($scope, realm, installation, application, ApplicationInstallation, $routeParams) { + console.log('ApplicationInstallationCtrl'); $scope.realm = realm; + $scope.application = application; $scope.installation = installation; $scope.download = ApplicationInstallation.url({ realm: $routeParams.realm, application: $routeParams.application }); }); diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/realm.js b/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/realm.js index 6598992017..3d053af638 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/realm.js +++ b/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/realm.js @@ -192,11 +192,11 @@ module.controller('RealmRequiredCredentialsCtrl', function($scope, Realm, realm, /* Map used in the table when hovering over (i) icon */ $scope.policyMessages = { - length: "Minimal password length. Default value is 8.", - digits: "Minimal number of digits in password. Default value is 1.", - lowerCase: "Minimal number of lowercase characters in password. Default value is 1.", - upperCase: "Minimal number of uppercase characters in password. Default value is 1.", - specialChars: "Minimal number of special characters in password. Default value is 1." + length: "Minimal password length (integer type). Default value is 8.", + digits: "Minimal number (integer type) of digits in password. Default value is 1.", + lowerCase: "Minimal number (integer type) of lowercase characters in password. Default value is 1.", + upperCase: "Minimal number (integer type) of uppercase characters in password. Default value is 1.", + specialChars: "Minimal number (integer type) of special characters in password. Default value is 1." } // $scope.policy is an object representing passwordPolicy string diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/realm-keys.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/realm-keys.html index d15ab2b723..b783bfa1b6 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/realm-keys.html +++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/realm-keys.html @@ -27,7 +27,8 @@
- +
diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/realm-social.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/realm-social.html index bbbbfd0546..dbdeb24e75 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/realm-social.html +++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/realm-social.html @@ -122,4 +122,8 @@ display: inline-block; margin: 5px; } + + .social-provider .icon-remove, .social-provider .icon-question { + cursor: pointer; + } \ No newline at end of file diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/realm-tokens.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/realm-tokens.html index 7a2b92b9b2..91ea2d355e 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/realm-tokens.html +++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/realm-tokens.html @@ -26,7 +26,7 @@
- +
+
+
+ required ng-pattern="/^[^\<\>\\\/]*$/" data-ng-readonly="!create">
@@ -45,7 +46,7 @@
-