default-groups.html 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <kc-tabs-group-list></kc-tabs-group-list>
  3. <form class="form-horizontal" name="realmForm" novalidate>
  4. <div class="form-group" kc-read-only="!access.manageRealm">
  5. <label class="col-md-1 control-label" class="control-label"></label>
  6. <div class="col-md-8" >
  7. <div class="row">
  8. <div class="col-md-5">
  9. <table class="table table-striped table-bordered">
  10. <thead>
  11. <tr>
  12. <th class="kc-table-actions" colspan="5">
  13. <div class="form-inline">
  14. <label class="control-label">{{:: 'default-groups' | translate}}</label>
  15. <kc-tooltip>{{:: 'default-groups.tooltip' | translate}}</kc-tooltip>
  16. <div class="pull-right" data-ng-show="access.manageRealm">
  17. <button id="removeDefaultGroup" class="btn btn-default" ng-click="removeDefaultGroup()">{{:: 'remove' | translate}}</button>
  18. </div>
  19. </div>
  20. </th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <tr>
  25. <td>
  26. <select id="defaultGroups" class="form-control" size=5
  27. ng-model="selectedGroup"
  28. ng-options="r.path for r in defaultGroups">
  29. <option style="display:none" value="">{{:: 'select-a-type.placeholder' | translate}}</option>
  30. </select>
  31. </td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. <div class="col-md-5">
  37. <table class="table table-striped table-bordered" style="margin-bottom: 0">
  38. <thead>
  39. <tr>
  40. <th class="kc-table-actions" colspan="5">
  41. <div class="form-inline">
  42. <div>
  43. <label class="control-label">{{:: 'available-groups' | translate}}</label>
  44. <kc-tooltip>{{:: 'available-groups.tooltip' | translate}}</kc-tooltip>
  45. </div>
  46. <div class="pull-left">
  47. <div class="input-group">
  48. <input type="text" placeholder="{{:: 'search.placeholder' | translate}}" ng-model="searchCriteria" class="form-control search" onkeydown="if (event.keyCode == 13) document.getElementById('groupSearch').click()">
  49. <div class="input-group-addon">
  50. <i class="fa fa-search" id="groupSearch" ng-click="searchGroup()"></i>
  51. </div>
  52. </div>
  53. </div>
  54. &nbsp;
  55. <button id="viewAllGroups" class="btn btn-default" ng-click="clearSearch()">{{:: 'view-all-groups' | translate}}</button>
  56. <div class="pull-right" data-ng-show="access.manageRealm">
  57. <button id="addDefaultGroup" class="btn btn-default" ng-click="addDefaultGroup()">{{:: 'add' | translate}}</button>
  58. </div>
  59. </div>
  60. </th>
  61. </tr>
  62. </thead>
  63. <tbody>
  64. <tr>
  65. <td>
  66. <div
  67. tree-id="tree"
  68. angular-treeview="true"
  69. tree-model="groupList"
  70. node-id="id"
  71. node-label="name"
  72. node-children="subGroups" >
  73. </div>
  74. </td>
  75. </tr>
  76. </tbody>
  77. </table>
  78. <div style="margin-bottom: 50px">
  79. <kc-paging current-page="currentPage" number-of-pages="numberOfPages" current-page-input="currentPageInput"></kc-paging>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </form>
  86. </div>
  87. <kc-menu></kc-menu>