You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

users.html 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!-- Page Content -->
  2. <div class="container">
  3. <div class="row col-sm-8 col-sm-offset-2" lu-busy="userList">
  4. <table class="col-sm-12 table table-hover">
  5. <thead>
  6. <tr>
  7. <th class="col-sm-3">
  8. <input type="checkbox" ng-click="toggleSelectAll()"
  9. ng-checked="selectedUsers.length == users.Data.length && users.Data.length != 0">
  10. Username
  11. </th>
  12. <th class="col-sm-3">Email</th>
  13. <th class="col-sm-3">Firstname</th>
  14. <th class="col-sm-3">Lastname</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <tr ng-repeat="user in users.Data" style="cursor: pointer" ng-click="displayUser(user)">
  19. <td><input name="selectedUsers[]" type="checkbox" ng-checked="selectedUsers.indexOf(user.Id) > -1"
  20. ng-click="$event.stopPropagation();toggleSelectedUser(user.Id)" >&nbsp;{{ user.Username }}</td>
  21. <td>{{ user.Email }}</td>
  22. <td>{{ user.Firstname }}</td>
  23. <td>{{ user.Lastname }}</td>
  24. </tr>
  25. </tbody>
  26. </table>
  27. <div class="col-sm-12 text-center">
  28. <a class="{{ p == page ? 'pagination-current' : 'pagination-not-current'}}" href="" ng-repeat="p in pages" ng-click="loadPage(p)">{{ p + 1 }}&nbsp;</a>
  29. </div>
  30. <div class="col-sm-12">
  31. <button class="btn btn-default" type="button" ng-click="removeUsers()" ng-disabled="selectedUsers.length == 0">
  32. <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Remove
  33. </button>
  34. <button class="btn btn-default" type="button" ng-click="addUser()">
  35. <span class="glyphicon glyphicon-plus" aria-hidden="true"></span> Add
  36. </button>
  37. </div>
  38. </div>
  39. </div>