client-policies-policy-edit-condition.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!--
  2. ~ Copyright 2021 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. -->
  18. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  19. <ol class="breadcrumb">
  20. <li><a href="#/realms/{{realm.realm}}/client-policies/policies">{{:: 'client-policies' | translate}}</a></li>
  21. <li><a href="#/realms/{{realm.realm}}/client-policies/policies-update/{{editedPolicy.name}}">{{editedPolicy.name}}</a></li>
  22. <li data-ng-show="createNew">{{:: 'create-condition' | translate}}</li>
  23. <li data-ng-hide="createNew">{{conditionType.id}}</li>
  24. </ol>
  25. <h1 data-ng-hide="createNew">{{conditionType.id|capitalize}}</h1>
  26. <h1 data-ng-show="createNew">{{:: 'create-condition' | translate}}</h1>
  27. <form class="form-horizontal" name="realmForm" novalidate kc-read-only="isReadOnly()">
  28. <fieldset>
  29. <div class="form-group" data-ng-show="createNew">
  30. <label class="col-md-2 control-label" for="conditionTypeCreate">{{:: 'condition-type' | translate}}</label>
  31. <div class="col-sm-6">
  32. <div>
  33. <select class="form-control" id="conditionTypeCreate"
  34. ng-model="conditionType"
  35. ng-options="conditionType.id for (conditionKey, conditionType) in conditionTypes">
  36. </select>
  37. </div>
  38. </div>
  39. <kc-tooltip>{{conditionType.helpText}}</kc-tooltip>
  40. </div>
  41. <div class="form-group clearfix" data-ng-hide="createNew">
  42. <label class="col-md-2 control-label" for="conditionType">{{:: 'condition-type' | translate}}</label>
  43. <div class="col-md-6">
  44. <input class="form-control" id="conditionType" type="text" ng-model="conditionType.id" data-ng-readonly="true">
  45. </div>
  46. <kc-tooltip>{{conditionType.helpText}}</kc-tooltip>
  47. </div>
  48. <kc-provider-config config="condition.config" properties="conditionType.properties" realm="realm"></kc-provider-config>
  49. </fieldset>
  50. <div class="form-group" data-ng-hide="isReadOnly()">
  51. <div class="col-md-10 col-md-offset-2">
  52. <button kc-save>{{:: 'save' | translate}}</button>
  53. <button kc-cancel data-ng-click="cancel()">{{:: 'cancel' | translate}}</button>
  54. </div>
  55. </div>
  56. </form>
  57. </div>
  58. <kc-menu></kc-menu>