create-client.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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}}/clients">{{:: 'clients' | translate}}</a></li>
  4. <li>{{:: 'add-client' | translate}}</li>
  5. </ol>
  6. <kc-tabs-client></kc-tabs-client>
  7. <form class="form-horizontal" name="clientForm" novalidate kc-read-only="!access.manageClients">
  8. <fieldset class="border-top">
  9. <div class="form-group">
  10. <label class="col-sm-2 control-label">{{:: 'import' | translate}}</label>
  11. <div class="col-md-6" data-ng-hide="importing">
  12. <label for="import-file" class="btn btn-default">{{:: 'select-file' | translate}} <i class="pficon pficon-import"></i></label>
  13. <input id="import-file" type="file" class="hidden" kc-on-read-file="importFile($fileContent)">
  14. </div>
  15. <div class="col-md-6" data-ng-show="importing">
  16. <button class="btn btn-default" type="button" data-ng-click="viewImportDetails()">{{:: 'view-details' | translate}}</button>
  17. <button class="btn btn-default" type="button" data-ng-click="reset()">{{:: 'clear-import' | translate}}</button>
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="col-md-2 control-label" for="clientId">{{:: 'client-id' | translate}} <span class="required">*</span></label>
  22. <div class="col-sm-6">
  23. <input class="form-control" type="text" id="clientId" name="clientId" data-ng-model="client.clientId" autofocus required>
  24. </div>
  25. <kc-tooltip>{{:: 'client-id.tooltip' | translate}}</kc-tooltip>
  26. </div>
  27. <div class="form-group">
  28. <label class="col-md-2 control-label" for="protocol">{{:: 'client-protocol' | translate}}</label>
  29. <div class="col-sm-6">
  30. <div>
  31. <select class="form-control" id="protocol"
  32. ng-change="changeProtocol()"
  33. ng-model="protocol"
  34. ng-options="aProtocol for aProtocol in protocols"
  35. ng-disabled="client.clientTemplate">
  36. </select>
  37. </div>
  38. </div>
  39. <kc-tooltip>{{:: 'client-protocol.tooltip' | translate}}</kc-tooltip>
  40. </div>
  41. <div class="form-group" data-ng-hide="protocol == 'saml'">
  42. <label class="col-md-2 control-label" for="rootUrl">{{:: 'root-url' | translate}}</label>
  43. <div class="col-sm-6">
  44. <input class="form-control" type="text" name="rootUrl" id="rootUrl" data-ng-model="client.rootUrl">
  45. </div>
  46. <kc-tooltip>{{:: 'root-url.tooltip' | translate}}</kc-tooltip>
  47. </div>
  48. <div class="form-group" data-ng-show="protocol == 'saml'">
  49. <label class="col-md-2 control-label" for="masterSamlUrl">{{:: 'client-saml-endpoint' | translate}}</label>
  50. <div class="col-sm-6">
  51. <input class="form-control" type="text" name="masterSamlUrl" id="masterSamlUrl"
  52. data-ng-model="client.adminUrl">
  53. </div>
  54. <kc-tooltip>{{:: 'master-saml-processing-url.tooltip' | translate}}</kc-tooltip>
  55. </div>
  56. </fieldset>
  57. <div class="form-group">
  58. <div class="col-md-10 col-md-offset-2" data-ng-show="access.manageClients">
  59. <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  60. <button kc-cancel data-ng-click="cancel()">{{:: 'cancel' | translate}}</button>
  61. </div>
  62. </div>
  63. </form>
  64. </div>
  65. <kc-menu></kc-menu>