realm-events-admin.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <h1>
  3. <span>{{:: 'admin-events' | translate}}</span>
  4. <kc-tooltip>{{:: 'admin-events.tooltip' | translate}}</kc-tooltip>
  5. </h1>
  6. <ul class="nav nav-tabs">
  7. <li data-ng-class="(path[2] == 'events') && 'active'"><a href="#/realms/{{realm.realm}}/events">{{:: 'login-events' | translate}}</a></li>
  8. <li data-ng-class="(path[2] == 'admin-events') && 'active'"><a href="#/realms/{{realm.realm}}/admin-events">{{:: 'admin-events' | translate}}</a></li>
  9. <li data-ng-class="(path[2] == 'events-settings') && 'active'"><a href="#/realms/{{realm.realm}}/events-settings">{{:: 'config' | translate}}</a></li>
  10. </ul>
  11. <h2></h2>
  12. <div id="content">
  13. <table class="table table-striped table-bordered">
  14. <thead>
  15. <tr>
  16. <th class="kc-table-actions" colspan="5">
  17. <div class="pull-right">
  18. <select data-ng-model="query.max"
  19. data-ng-click="update()"
  20. data-ng-options="itemCount for itemCount in [5,10,50,100]"
  21. class="btn btn-default">
  22. </select>
  23. <button class="btn btn-default" data-ng-click="filter = !filter">
  24. <span class="glyphicon glyphicon-plus" data-ng-show="!filter"></span>
  25. <span class="glyphicon glyphicon-minus" data-ng-show="filter"></span>
  26. {{:: 'filter' | translate}}
  27. </button>
  28. <button class="btn btn-default btn-default" data-ng-click="update()">{{:: 'update' | translate}}</button>
  29. <button class="btn btn-default btn-default" data-ng-click="reset()">{{:: 'reset' | translate}}</button>
  30. </div>
  31. <form class="form-horizontal" data-ng-show="filter">
  32. <div class="form-group">
  33. <label class="col-sm-2 control-label" for="adminEnabledEventOperations">{{:: 'operation-types' | translate}}</label>
  34. <div class="col-sm-5" onkeypress="return false;" ng-paste="disablePaste($event)">
  35. <input ui-select2="adminEnabledEventOperationsOptions" id="adminEnabledEventOperations" ng-model="query.operationTypes" data-placeholder="{{:: 'select-operations.placeholder' | translate}}"/>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="col-sm-2 control-label" for="adminEnabledEventResourceTypes">{{:: 'resource-types' | translate}}</label>
  40. <div class="col-sm-5" onkeypress="return false;" ng-paste="disablePaste($event)">
  41. <input ui-select2="adminEnabledEventResourceTypesOptions" id="adminEnabledEventResourceTypes" ng-model="query.resourceTypes" data-placeholder="{{:: 'select-resource-types.placeholder' | translate}}"/>
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="col-sm-2 control-label" for="resource">{{:: 'resource-path' | translate}}</label>
  46. <kc-tooltip>{{:: 'resource-path.tooltip' | translate}}</kc-tooltip>
  47. <div class="col-sm-4">
  48. <input class="form-control" type="text" id="resource" name="resource" data-ng-model="query.resourcePath">
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <label class="col-sm-2 control-label" for="dateFrom">{{:: 'date-(from)' | translate}}</label>
  53. <div class="col-sm-4">
  54. <input class="form-control" type="text" id="dateFrom" name="dateFrom" data-ng-model="query.dateFrom" placeholder="yyyy-MM-dd">
  55. </div>
  56. </div>
  57. <div class="form-group">
  58. <label class="col-sm-2 control-label" for="dateTo">{{:: 'date-(to)' | translate}}</label>
  59. <div class="col-sm-4">
  60. <input class="form-control" type="text" id="dateTo" name="dateTo" data-ng-model="query.dateTo" placeholder="yyyy-MM-dd">
  61. </div>
  62. </div>
  63. <fieldset>
  64. <legend><span class="text">{{:: 'authentication-details' | translate}}</span></legend>
  65. <div class="form-group">
  66. <label class="col-sm-2 control-label" for="realm">{{:: 'realm' | translate}}</label>
  67. <div class="col-sm-4">
  68. <input class="form-control" type="text" id="realm" name="realm" data-ng-model="query.authRealm">
  69. </div>
  70. </div>
  71. <div class="form-group">
  72. <label class="col-sm-2 control-label" for="client">{{:: 'client' | translate}}</label>
  73. <div class="col-sm-4">
  74. <input class="form-control" type="text" id="client" name="client" data-ng-model="query.authClient">
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label class="col-sm-2 control-label" for="user">{{:: 'user' | translate}}</label>
  79. <div class="col-sm-4">
  80. <input class="form-control" type="text" id="user" name="user" data-ng-model="query.authUser">
  81. </div>
  82. </div>
  83. <div class="form-group">
  84. <label class="col-sm-2 control-label" for="ipAddress">{{:: 'ip-address' | translate}}</label>
  85. <div class="col-sm-4">
  86. <input class="form-control" type="text" id="ipAddress" name="ipAddress" data-ng-model="query.authIpAddress">
  87. </div>
  88. </div>
  89. </fieldset>
  90. </form>
  91. </th>
  92. </tr>
  93. <tr>
  94. <th width="100px">{{:: 'time' | translate}}</th>
  95. <th width="180px">{{:: 'operation-type' | translate}}</th>
  96. <th width="180px">{{:: 'resource-type' | translate}}</th>
  97. <th width="180px">{{:: 'resource-path' | translate}}</th>
  98. <th>{{:: 'details' | translate}}</th>
  99. </tr>
  100. </thead>
  101. <tfoot>
  102. <tr>
  103. <td colspan="7">
  104. <button data-ng-click="firstPage()" class="first" ng-disabled="query.first == 0"><i data-ng-class="query.first == 0 && 'text-muted'" class="fa fa-angle-double-left"></i></button>
  105. <button data-ng-click="previousPage()" class="prev" ng-disabled="query.first == 0"><i data-ng-class="query.first == 0 && 'text-muted'" class="fa fa-angle-left"></i></button>
  106. <button data-ng-click="nextPage()" class="next" ng-disabled="events.length < query.max"><i data-ng-class="events.length < query.max && 'text-muted'" class="fa fa-angle-right"></i></button>
  107. </td>
  108. </tr>
  109. </tfoot>
  110. <tbody>
  111. <tr data-ng-repeat="event in events">
  112. <td>{{event.time|date:('dateFormat' | translate)}}<br>{{event.time|date:('timeFormat' | translate)}}</td>
  113. <td data-ng-class="events-error">{{event.operationType}}</td>
  114. <td data-ng-class="events-error">{{event.resourceType}}</td>
  115. <td>{{event.resourcePath}}</td>
  116. <td>
  117. <button type="button" class="btn btn-default btn-xs" data-ng-click="viewAuth(event)">
  118. {{:: 'auth' | translate}}
  119. </button>
  120. <button type="button" class="btn btn-default btn-xs" data-ng-click="viewRepresentation(event)" data-ng-show="event.representation">
  121. {{:: 'representation' | translate}}
  122. </button>
  123. </td>
  124. </tr>
  125. </tbody>
  126. </table>
  127. </div>
  128. </div>
  129. <kc-menu></kc-menu>