Matteo Scandolo | 4eb4ccb | 2016-01-26 11:02:16 -0800 | [diff] [blame] | 1 | <!-- Users page partial html --> |
| 2 | <div class="container"> |
Matteo Scandolo | 413c45d | 2016-01-29 11:40:41 -0800 | [diff] [blame] | 3 | <div id="user" class="row"> |
| 4 | <div class="col-xs-12"> |
| 5 | <table class="table"> |
| 6 | <thead> |
| 7 | <tr> |
| 8 | <th></th> |
| 9 | <th class="form-inline"> |
| 10 | Name <input ng-model="q.name" type="text" class="form-control"> |
| 11 | </th> |
| 12 | <th>Last Login</th> |
| 13 | <th ng-if="isFamily"> |
| 14 | Select Site Rating |
| 15 | <span class="help" ng-click="showRatings()"> (?)</span> |
| 16 | </th> |
| 17 | <th ng-if="isFamily"></th> |
| 18 | </tr> |
| 19 | </thead> |
| 20 | <tr ng-repeat="user in users | filter:q" class="animate-repeat"> |
| 21 | <td class="avatar"> |
Matteo Scandolo | 4eb4ccb | 2016-01-26 11:02:16 -0800 | [diff] [blame] | 22 | <img ng-src="{{'/imgs/' + user.icon_id + '.jpg'}}"> |
| 23 | </td> |
| 24 | <td>{{user.name}}</td> |
| 25 | <td>{{shared.userActivity[user.id]}}</td> |
Matteo Scandolo | 413c45d | 2016-01-29 11:40:41 -0800 | [diff] [blame] | 26 | <td ng-if="isFamily"> |
| 27 | <select class="form-control" ng-model="user.level" ng-options="l for l in levels" ng-change="updateLevel(user)"> |
| 28 | </select> |
| 29 | </td> |
| 30 | <td ng-if="isFamily" style="width: 46px"> |
| 31 | <user-updated-tick user="user">Saved</user-updated-tick> |
| 32 | </td> |
Matteo Scandolo | 4eb4ccb | 2016-01-26 11:02:16 -0800 | [diff] [blame] | 33 | </tr> |
| 34 | </table> |
| 35 | </div> |
| 36 | |
Matteo Scandolo | 413c45d | 2016-01-29 11:40:41 -0800 | [diff] [blame] | 37 | <!-- TODO refactor in modal--> |
Matteo Scandolo | 4eb4ccb | 2016-01-26 11:02:16 -0800 | [diff] [blame] | 38 | <div ng-if="isFamily"> |
| 39 | <ratings-panel></ratings-panel> |
| 40 | </div> |
| 41 | </div> |
| 42 | </div> |