blob: 76896f8e5da35325fb264a0f22ea67983d57b4c4 [file] [log] [blame]
Matteo Scandolo4eb4ccb2016-01-26 11:02:16 -08001<!-- Users page partial html -->
2<div class="container">
Matteo Scandolo413c45d2016-01-29 11:40:41 -08003 <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 Scandolo4eb4ccb2016-01-26 11:02:16 -080022 <img ng-src="{{'/imgs/' + user.icon_id + '.jpg'}}">
23 </td>
24 <td>{{user.name}}</td>
25 <td>{{shared.userActivity[user.id]}}</td>
Matteo Scandolo413c45d2016-01-29 11:40:41 -080026 <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 Scandolo4eb4ccb2016-01-26 11:02:16 -080033 </tr>
34 </table>
35 </div>
36
Matteo Scandolo413c45d2016-01-29 11:40:41 -080037 <!-- TODO refactor in modal-->
Matteo Scandolo4eb4ccb2016-01-26 11:02:16 -080038 <div ng-if="isFamily">
39 <ratings-panel></ratings-panel>
40 </div>
41 </div>
42</div>