protocol-mapper-detail.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <h1 data-ng-show="model.create">{{:: 'create-protocol-mapper' | translate}}</h1>
  2. <h1 data-ng-hide="model.create">{{model.mapper.name|capitalize}}<i class="pficon pficon-delete clickable" data-ng-show="!model.create && access.manageClients"
  3. data-ng-hide="model.changed" data-ng-click="remove()"></i></h1>
  4. <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageClients">
  5. <fieldset>
  6. <div class="form-group clearfix">
  7. <label class="col-md-2 control-label" for="protocol">{{:: 'protocol' | translate}}</label>
  8. <div class="col-md-6">
  9. <input class="form-control" id="protocol" type="text" ng-model="model.protocol" readonly>
  10. </div>
  11. <kc-tooltip>{{:: 'protocol.tooltip' | translate}}</kc-tooltip>
  12. </div>
  13. <div class="form-group clearfix" data-ng-show="!model.create">
  14. <label class="col-md-2 control-label" for="mapperId">{{:: 'id' | translate}} </label>
  15. <div class="col-md-6">
  16. <input class="form-control" id="mapperId" type="text" ng-model="model.mapper.id" readonly>
  17. </div>
  18. </div>
  19. <div class="form-group clearfix">
  20. <label class="col-md-2 control-label" for="name">{{:: 'name' | translate}}</label>
  21. <div class="col-md-6">
  22. <input class="form-control" id="name" type="text" ng-model="model.mapper.name" data-ng-readonly="!model.create" required>
  23. </div>
  24. <kc-tooltip>{{:: 'mapper.name.tooltip' | translate}}</kc-tooltip>
  25. </div>
  26. <div class="form-group" data-ng-show="model.create">
  27. <label class="col-md-2 control-label" for="mapperTypeCreate">{{:: 'mapper-type' | translate}}</label>
  28. <div class="col-md-6">
  29. <div>
  30. <select class="form-control" id="mapperTypeCreate"
  31. ng-model="model.mapperType"
  32. ng-options="mapperType.name for mapperType in model.mapperTypes"
  33. required>
  34. </select>
  35. </div>
  36. </div>
  37. <kc-tooltip>{{model.mapperType.helpText}}</kc-tooltip>
  38. </div>
  39. <div class="form-group clearfix" data-ng-hide="model.create">
  40. <label class="col-md-2 control-label" for="mapperType">{{:: 'mapper-type' | translate}}</label>
  41. <div class="col-md-6">
  42. <input class="form-control" id="mapperType" type="text" ng-model="model.mapperType.name" data-ng-readonly="true">
  43. </div>
  44. <kc-tooltip>{{model.mapperType.helpText}}</kc-tooltip>
  45. </div>
  46. <kc-provider-config config="model.mapper.config" properties="model.mapperType.properties" realm="model.realm" clients="clients"></kc-provider-config>
  47. </fieldset>
  48. <div class="form-group">
  49. <div class="col-md-10 col-md-offset-2" data-ng-show="model.create && access.manageClients">
  50. <button kc-save>{{:: 'save' | translate}}</button>
  51. <button kc-cancel data-ng-click="cancel()">{{:: 'cancel' | translate}}</button>
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <div class="col-md-10 col-md-offset-2" data-ng-show="!model.create && access.manageClients">
  56. <button kc-save data-ng-disabled="!model.changed">{{:: 'save' | translate}}</button>
  57. <button kc-reset data-ng-disabled="!model.changed">{{:: 'cancel' | translate}}</button>
  58. </div>
  59. </div>
  60. </form>