client-reg-policy-detail.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. <ol class="breadcrumb">
  19. <li><a href="#/realms/{{realm.realm}}/client-registration/client-reg-policies">{{:: 'client-reg-policies' | translate}}</a></li>
  20. <li>{{instance.name || headerTitle}}</li>
  21. </ol>
  22. <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageClients ">
  23. <fieldset>
  24. <legend><span class="text">{{headerTitle}}</span></legend><kc-tooltip>{{:: providerType.helpText | translate}}</kc-tooltip>
  25. <div class="form-group clearfix" data-ng-show="!create">
  26. <label class="col-md-2 control-label" for="instanceId">{{:: 'id' | translate}} </label>
  27. <div class="col-md-6">
  28. <input class="form-control" id="instanceId" type="text" ng-model="instance.id" readonly>
  29. </div>
  30. </div>
  31. <div class="form-group clearfix">
  32. <label class="col-md-2 control-label" for="name">{{:: 'name' | translate}} <span class="required">*</span></label>
  33. <div class="col-md-6">
  34. <input class="form-control" id="name" type="text" ng-model="instance.name" required>
  35. </div>
  36. <kc-tooltip>{{:: 'client-reg-policy.name.tooltip' | translate}}</kc-tooltip>
  37. </div>
  38. <div class="form-group clearfix">
  39. <label class="col-md-2 control-label" for="policyType">{{:: 'provider' | translate}}</label>
  40. <div class="col-md-6">
  41. <input class="form-control" id="policyType" type="text" ng-model="providerType.id" data-ng-readonly="true">
  42. </div>
  43. <kc-tooltip>{{providerType.helpText}}</kc-tooltip>
  44. </div>
  45. <kc-component-config config="instance.config" properties="providerType.properties" realm="realm"></kc-component-config>
  46. </fieldset>
  47. <div class="form-group" data-ng-show="create && access.manageClients">
  48. <div class="col-md-10 col-md-offset-2">
  49. <button kc-save data-ng-disabled="!hasValidValues()">{{:: 'save' | translate}}</button>
  50. <button kc-reset>{{:: 'cancel' | translate}}</button>
  51. </div>
  52. </div>
  53. <div class="form-group" data-ng-show="!create && access.manageClients">
  54. <div class="col-md-10 col-md-offset-2">
  55. <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  56. <button kc-reset data-ng-disabled="!changed">{{:: 'cancel' | translate}}</button>
  57. </div>
  58. </div>
  59. </form>
  60. </div>
  61. <kc-menu></kc-menu>