user-storage-ldap-mapper-detail.html 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <ol class="breadcrumb">
  3. <li><a href="#/realms/{{realm.realm}}/user-federation">{{:: 'user-federation' | translate}}</a></li>
  4. <li><a href="#/realms/{{realm.realm}}/user-storage/providers/ldap/{{provider.id}}">{{provider.providerId|capitalize}}</a></li>
  5. <li><a href="#/realms/{{realm.realm}}/ldap-mappers/{{provider.id}}">{{:: 'ldap-mappers' | translate}}</a></li>
  6. <li class="active" data-ng-show="create">{{:: 'create-ldap-mapper' | translate}}</li>
  7. <li class="active" data-ng-hide="create">{{mapper.name}}</li>
  8. </ol>
  9. <h1 data-ng-hide="create">{{mapper.name|capitalize}}<i class="pficon pficon-delete clickable" data-ng-show="!create && access.manageRealm"
  10. data-ng-hide="changed" data-ng-click="remove()"></i></h1>
  11. <h1 data-ng-show="create">{{:: 'add-user-federation-mapper' | translate}}</h1>
  12. <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageRealm">
  13. <fieldset>
  14. <div class="form-group clearfix" data-ng-show="!create">
  15. <label class="col-md-2 control-label" for="mapperId">{{:: 'id' | translate}} </label>
  16. <div class="col-md-6">
  17. <input class="form-control" id="mapperId" type="text" ng-model="mapper.id" readonly>
  18. </div>
  19. </div>
  20. <div class="form-group clearfix">
  21. <label class="col-md-2 control-label" for="name">{{:: 'name' | translate}} <span class="required">*</span></label>
  22. <div class="col-md-6">
  23. <input class="form-control" id="name" type="text" ng-model="mapper.name" data-ng-readonly="!create" required>
  24. </div>
  25. <kc-tooltip>{{:: 'mapper.name.tooltip' | translate}}</kc-tooltip>
  26. </div>
  27. <div class="form-group" data-ng-show="create">
  28. <label class="col-md-2 control-label" for="mapperTypeCreate">{{:: 'mapper-type' | translate}}</label>
  29. <div class="col-sm-6">
  30. <div>
  31. <select class="form-control" id="mapperTypeCreate"
  32. ng-model="mapperType"
  33. ng-options="mapperType.id for mapperType in mapperTypes">
  34. </select>
  35. </div>
  36. </div>
  37. <kc-tooltip>{{mapperType.helpText}}</kc-tooltip>
  38. </div>
  39. <div class="form-group clearfix" data-ng-hide="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="mapperType.id" data-ng-readonly="true">
  43. </div>
  44. <kc-tooltip>{{mapperType.helpText}}</kc-tooltip>
  45. </div>
  46. <kc-component-config realm="realm" clients="clients" config="mapper.config" properties="mapperType.properties"></kc-component-config>
  47. </fieldset>
  48. <div class="form-group">
  49. <div class="col-md-10 col-md-offset-2" data-ng-show="access.manageRealm">
  50. <button kc-save data-ng-disabled="!changed">Save</button>
  51. <button kc-reset data-ng-disabled="!changed">Cancel</button>
  52. <button class="btn btn-primary" data-ng-click="triggerFedToKeycloakSync()" data-ng-hide="create || !mapperType.metadata.fedToKeycloakSyncSupported" data-ng-disabled="changed">{{:: mapperType.metadata.fedToKeycloakSyncMessage | translate}}</button>
  53. <button class="btn btn-primary" data-ng-click="triggerKeycloakToFedSync()" data-ng-hide="create || !mapperType.metadata.keycloakToFedSyncSupported" data-ng-disabled="changed">{{:: mapperType.metadata.keycloakToFedSyncMessage | translate}}</button>
  54. </div>
  55. </div>
  56. </form>
  57. </div>
  58. <kc-menu></kc-menu>