realm-keys-providers.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!--
  2. ~ Copyright 2016 Red Hat, Inc. and/or its affiliates
  3. ~ and other contributors as indicated by the @author tags.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  18. <kc-tabs-realm></kc-tabs-realm>
  19. <ul class="nav nav-tabs nav-tabs-pf">
  20. <li><a href="#/realms/{{realm.realm}}/keys">{{:: 'active' | translate}}</a></li>
  21. <li><a href="#/realms/{{realm.realm}}/keys/passive">{{:: 'passive' | translate}}</a></li>
  22. <li><a href="#/realms/{{realm.realm}}/keys/disabled">{{:: 'disabled' | translate}}</a></li>
  23. <li class="active"><a href="#/realms/{{realm.realm}}/keys/providers">{{:: 'providers' | translate}}</a></li>
  24. </ul>
  25. <table class="table table-striped table-bordered">
  26. <thead>
  27. <tr>
  28. <th class="kc-table-actions" colspan="7">
  29. <div class="form-inline">
  30. <div class="form-group">
  31. <div class="input-group">
  32. <input type="text" placeholder="{{:: 'search.placeholder' | translate}}" data-ng-model="search" class="form-control search">
  33. <div class="input-group-addon">
  34. <i class="fa fa-search"></i>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="pull-right" data-ng-show="access.manageClients">
  39. <select class="form-control" ng-model="selectedProvider"
  40. ng-options="p.id for p in providers"
  41. data-ng-change="addProvider(selectedProvider); selectedProvider = null">
  42. <option value="" disabled selected>{{:: 'add-keystore.placeholder' | translate}}</option>
  43. </select>
  44. </div>
  45. </div>
  46. </th>
  47. </tr>
  48. <tr data-ng-show="instances && instances.length > 0">
  49. <th>{{:: 'name' | translate}}</th>
  50. <th>{{:: 'provider' | translate}}</th>
  51. <th>{{:: 'providerHelpText' | translate}}</th>
  52. <th>{{:: 'priority' | translate}}</th>
  53. <th colspan="2">{{:: 'actions' | translate}}</th>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. <tr ng-repeat="instance in instances | filter:search">
  58. <td><a href="#/realms/{{realm.realm}}/keys/providers/{{instance.providerId}}/{{instance.id}}">{{instance.name}}</a></td>
  59. <td>{{instance.providerId}}</td>
  60. <td>{{instance.provider.helpText}}</td>
  61. <td>{{instance.config['priority'][0]}}</td>
  62. <td class="kc-action-cell" kc-open="/realms/{{realm.realm}}/keys/providers/{{instance.providerId}}/{{instance.id}}">{{:: 'edit' | translate}}</td>
  63. <td class="kc-action-cell" ng-show="instances.length > 1" data-ng-click="removeInstance(instance)">{{:: 'delete' | translate}}</td>
  64. </tr>
  65. </tbody>
  66. </table>
  67. </div>
  68. <kc-menu></kc-menu>