client-initial-access.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <kc-tabs-realm></kc-tabs-realm>
  3. <ul class="nav nav-tabs nav-tabs-pf">
  4. <li class="active"><a href="#/realms/{{realm.realm}}/client-registration/client-initial-access">{{:: 'initial-access-tokens' | translate}}</a></li>
  5. <li><a href="#/realms/{{realm.realm}}/client-registration/client-reg-policies">{{:: 'client-reg-policies' | translate}}</a></li>
  6. </ul>
  7. <table class="table table-striped table-bordered">
  8. <thead>
  9. <tr>
  10. <th class="kc-table-actions" colspan="6">
  11. <div class="form-inline">
  12. <div class="form-group">
  13. <div class="input-group">
  14. <input type="text" placeholder="{{:: 'search.placeholder' | translate}}" data-ng-model="search2.id" class="form-control search" onkeyup="if(event.keyCode == 13){$(this).next('I').click();}">
  15. <div class="input-group-addon">
  16. <i class="fa fa-search" type="submit"></i>
  17. </div>
  18. </div>
  19. </div>
  20. <div class="pull-right" data-ng-show="access.manageClients">
  21. <a id="createClient" class="btn btn-default" href="#/realms/{{realm.realm}}/client-registration/client-initial-access/create">{{:: 'create' | translate}}</a>
  22. </div>
  23. </div>
  24. </th>
  25. </tr>
  26. <tr data-ng-hide="clientInitialAccess.length == 0">
  27. <th>{{:: 'id' | translate}}</th>
  28. <th>{{:: 'created' | translate}}</th>
  29. <th>{{:: 'expires' | translate}}</th>
  30. <th>{{:: 'count' | translate}}</th>
  31. <th>{{:: 'remainingCount' | translate}}</th>
  32. <th>{{:: 'actions' | translate}}</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <tr ng-repeat="ia in clientInitialAccess | filter:search2 | orderBy:'timestamp'">
  37. <td>{{ia.id}}</td>
  38. <td>{{(ia.timestamp * 1000)|date:('dateFormat' | translate)}}&nbsp;{{(ia.timestamp * 1000)|date:('timeFormat' | translate)}}</td>
  39. <td><span data-ng-show="ia.expiration > 0">{{((ia.timestamp + ia.expiration) * 1000)|date:('dateFormat' | translate)}}&nbsp;{{((ia.timestamp + ia.expiration) * 1000)|date:('timeFormat' | translate)}}</span></td>
  40. <td>{{ia.count}}</td>
  41. <td>{{ia.remainingCount}}</td>
  42. <td class="kc-action-cell" data-ng-click="remove(ia.id)">{{:: 'delete' | translate}}</td>
  43. </tr>
  44. <tr data-ng-show="(clientInitialAccess | filter:search2).length == 0">
  45. <td class="text-muted" colspan="3" data-ng-show="search2.id">{{:: 'no-results' | translate}}</td>
  46. <td class="text-muted" colspan="3" data-ng-hide="search2.id">{{:: 'no-initial-access-available' | translate}}</td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. </div>
  51. <kc-menu></kc-menu>