2017-10-14 23:15:53 +08:00
< section class = "container" ng-init = "vm.buildPager();" >
< div class = "page-header" id = "top_of_users_list" >
2017-05-04 12:12:37 +08:00
< div class = "row" >
2017-11-06 15:46:54 +08:00
< div class = "col-md-3" >
2017-05-04 12:31:46 +08:00
< h3 > {{ 'USERS_LIST' | translate}}< / h3 >
2017-05-04 12:12:37 +08:00
< / div >
2017-11-06 15:46:54 +08:00
< div class = "col-md-6 checkbox-inline" style = "margin-top: 1em" >
2017-09-19 13:35:00 +08:00
< label class = "checkbox-inline" >
2017-10-16 18:25:11 +08:00
< input type = "checkbox" ng-model = "vm.searchVip" ng-change = "vm.buildPager();" > isVip
2017-09-19 13:35:00 +08:00
< / label >
< label class = "checkbox-inline" >
2017-10-16 18:25:11 +08:00
< input type = "checkbox" ng-model = "vm.searchAdmin" ng-change = "vm.buildPager();" > isAdmin
2017-09-19 13:35:00 +08:00
< / label >
< label class = "checkbox-inline" >
2017-10-16 18:25:11 +08:00
< input type = "checkbox" ng-model = "vm.searchOper" ng-change = "vm.buildPager();" > isOper
2017-09-19 13:35:00 +08:00
< / label >
2017-11-06 15:46:54 +08:00
< div >
2017-12-03 16:47:57 +08:00
< label class = "radio-inline" >
< input type = "radio" name = "status_normal" ng-model = "vm.userStatus"
id="status_all" value="all" ng-change="vm.buildPager();"> all
< / label >
2017-11-06 15:46:54 +08:00
< label class = "radio-inline" >
< input type = "radio" name = "status_normal" ng-model = "vm.userStatus"
id="status_normal" value="normal" ng-change="vm.buildPager();"> normal
< / label >
< label class = "radio-inline" >
< input type = "radio" name = "status_banned" ng-model = "vm.userStatus"
id="status_banned" value="banned" ng-change="vm.buildPager();"> banned
< / label >
2017-12-03 16:47:57 +08:00
< label class = "radio-inline" >
< input type = "radio" name = "status_banned" ng-model = "vm.userStatus"
id="status_idle" value="idle" ng-change="vm.buildPager();"> idle
< / label >
2017-11-06 15:46:54 +08:00
< label class = "radio-inline" >
< input type = "radio" name = "status_inactive" ng-model = "vm.userStatus"
id="status_inactive" value="inactive" ng-change="vm.buildPager();"> inactive
< / label >
< / div >
2017-09-19 13:35:00 +08:00
< / div >
2017-11-06 15:46:54 +08:00
< div class = "col-md-3" style = "margin-top: 1em" >
2018-05-04 12:16:30 +08:00
< input class = "form-control col-md-4" type = "text" ng-model = "vm.search" placeholder = "Keys or Passkey or _id" ng-change = "vm.currentPage = 1; vm.figureOutItemsToDisplay()" / >
2017-05-04 12:12:37 +08:00
< / div >
< / div >
2015-07-25 16:53:11 -04:00
< / div >
2017-05-04 12:12:37 +08:00
< div class = "list-group" >
2017-06-06 17:29:23 +08:00
< a ng-repeat = "user in vm.pagedItems" ui-sref = "admin.user({userId: user._id})" class = "list-group-item"
2017-12-03 16:47:57 +08:00
ng-class="{'span-banned': user.status == 'banned', 'span-idle': user.status == 'idle'}">
2017-10-13 15:43:39 +08:00
< img class = "ulist-avatar" ng-src = "{{user.profileImageURL}}" >
2017-06-08 16:06:46 +08:00
2017-09-19 13:35:00 +08:00
< h4 class = "list-group-item-heading" > {{user.displayName}} < span vip-flag = "user" > < / span > -
< small > {{user.username}}< / small >
< / h4 >
2015-07-21 00:35:58 -04:00
2017-05-04 12:12:37 +08:00
< p class = "list-group-item-text pull-right small" ng-bind = "user.roles" > < / p >
2017-12-03 16:47:57 +08:00
< p class = "list-group-item-text" > < span ng-bind = "user.email" > < / span > | < strong > {{user.status}}< / strong > < / p >
2017-05-04 12:12:37 +08:00
< / a >
< / div >
2017-05-08 11:32:30 +08:00
< ul uib-pagination boundary-links = "true" max-size = "8" items-per-page = "vm.itemsPerPage" total-items = "vm.filterLength" ng-model = "vm.currentPage"
2017-09-19 13:35:00 +08:00
ng-change="vm.pageChanged()"
first-text="{{ 'PAGE_TEXT_FIRST' | translate}}" previous-text="{{ 'PAGE_TEXT_PREVIOUS' | translate}}"
next-text="{{ 'PAGE_TEXT_NEXT' | translate}}" last-text="{{ 'PAGE_TEXT_LAST' | translate}}">
2017-05-08 11:32:30 +08:00
< / ul >
2015-07-21 00:35:58 -04:00
< / section >