client-initial-access-create.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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}}/client-registration/client-initial-access">{{:: 'initial-access-tokens' | translate}}</a></li>
  4. <li>{{:: 'add-initial-access-tokens' | translate}}</li>
  5. </ol>
  6. <h1 data-ng-show="create">{{:: 'add-client' | translate}}</h1>
  7. <form class="form-horizontal" name="createForm" novalidate kc-read-only="!access.manageRealm" data-ng-hide="token">
  8. <div class="form-group">
  9. <label class="col-md-2 control-label" for="expiration">{{:: 'expiration' | translate}}</label>
  10. <div class="col-md-6 time-selector">
  11. <input class="form-control" type="number" required min="0" max="31536000" data-ng-model="expiration" id="expiration"
  12. name="expiration"/>
  13. <select class="form-control" name="expirationUnit" data-ng-model="expirationUnit">
  14. <option data-ng-selected="!expirationUnit" value="Seconds">{{:: 'seconds' | translate}}</option>
  15. <option value="Minutes">{{:: 'minutes' | translate}}</option>
  16. <option value="Hours">{{:: 'hours' | translate}}</option>
  17. <option value="Days">{{:: 'days' | translate}}</option>
  18. </select>
  19. </div>
  20. <kc-tooltip>{{:: 'expiration.tooltip' | translate}}</kc-tooltip>
  21. </div>
  22. <div class="form-group">
  23. <label class="col-md-2 control-label" for="count">{{:: 'count' | translate}} </label>
  24. <div class="col-sm-6">
  25. <input class="form-control" type="text" id="count" name="count" required min="1" max="100" data-ng-model="count">
  26. </div>
  27. <kc-tooltip>{{:: 'count.tooltip' | translate}}</kc-tooltip>
  28. </div>
  29. <div class="form-group">
  30. <div class="col-md-10 col-md-offset-2" data-ng-show="access.manageRealm">
  31. <button kc-save>{{:: 'save' | translate}}</button>
  32. <button kc-cancel data-ng-click="cancel()">{{:: 'cancel' | translate}}</button>
  33. </div>
  34. </div>
  35. </form>
  36. <form name="displayForm" data-ng-show="token">
  37. <div class="form-group">
  38. <label for="initialAccessToken">{{:: 'initial-access-token' | translate}}</label>
  39. <div>
  40. <textarea type="text" id="initialAccessToken" name="initialAccessToken" class="form-control" rows="6" kc-select-action="click">{{token}}</textarea>
  41. </div>
  42. <kc-tooltip>{{:: 'initial-access.copyPaste.tooltip' | translate}}</kc-tooltip>
  43. </div>
  44. <div class="form-group">
  45. <div>
  46. <button class="btn btn-default" data-ng-click="done()">{{:: 'back' | translate}}</button>
  47. </div>
  48. </div>
  49. </form>
  50. </div>
  51. <kc-menu></kc-menu>