Matteo Scandolo | 4eb4ccb | 2016-01-26 11:02:16 -0800 | [diff] [blame] | 1 | <!-- Users page partial html --> |
| 2 | <div class="container"> |
| 3 | <div id="user"> |
| 4 | <div class="main-left" ng-class="{family: isFamily}"> |
| 5 | <table class="user-info"> |
| 6 | <tr> |
| 7 | <th class="user-pic"></th> |
| 8 | <th>Name</th> |
| 9 | <th>Last Login</th> |
| 10 | </tr> |
| 11 | <tr ng-repeat="user in users" class="fadein"> |
| 12 | <td class="user-pic"> |
| 13 | <img ng-src="{{'/imgs/' + user.icon_id + '.jpg'}}"> |
| 14 | </td> |
| 15 | <td>{{user.name}}</td> |
| 16 | <td>{{shared.userActivity[user.id]}}</td> |
| 17 | </tr> |
| 18 | </table> |
| 19 | </div> |
| 20 | |
| 21 | <div class="main-right" ng-class="{family: isFamily}"> |
Matteo Scandolo | 39c65a5 | 2016-01-27 12:00:18 -0800 | [diff] [blame] | 22 | <form ng-if="isFamily" name="changeLevels"> |
Matteo Scandolo | 4eb4ccb | 2016-01-26 11:02:16 -0800 | [diff] [blame] | 23 | <table class="user-form"> |
| 24 | <tr> |
| 25 | <th> |
| 26 | Select Site Rating |
Matteo Scandolo | 39c65a5 | 2016-01-27 12:00:18 -0800 | [diff] [blame] | 27 | <span class="help" ng-click="showRatings()"> (?)</span> |
Matteo Scandolo | 4eb4ccb | 2016-01-26 11:02:16 -0800 | [diff] [blame] | 28 | </th> |
| 29 | </tr> |
| 30 | <tr ng-repeat="user in users" class="options"> |
| 31 | <td> |
Matteo Scandolo | 39c65a5 | 2016-01-27 12:00:18 -0800 | [diff] [blame] | 32 | <select ng-model="user.level" ng-options="l for l in levels" ng-change="updateLevel(user)"> |
Matteo Scandolo | 4eb4ccb | 2016-01-26 11:02:16 -0800 | [diff] [blame] | 33 | </select> |
Matteo Scandolo | 90621b3 | 2016-01-27 16:40:21 -0800 | [diff] [blame^] | 34 | <user-updated-tick user="user">Saved</user-updated-tick> |
Matteo Scandolo | 4eb4ccb | 2016-01-26 11:02:16 -0800 | [diff] [blame] | 35 | </td> |
| 36 | </tr> |
Matteo Scandolo | 4eb4ccb | 2016-01-26 11:02:16 -0800 | [diff] [blame] | 37 | </table> |
| 38 | </form> |
| 39 | </div> |
| 40 | <div ng-if="isFamily"> |
| 41 | <ratings-panel></ratings-panel> |
| 42 | </div> |
| 43 | </div> |
| 44 | </div> |