Bri Prebilic Cole | 3c3361c | 2015-05-19 12:07:29 -0700 | [diff] [blame] | 1 | <!-- Users page partial html --> |
| 2 | <div class="container"> |
| 3 | <nav></nav> |
Bri Prebilic Cole | e2958f2 | 2015-05-26 17:18:23 -0700 | [diff] [blame] | 4 | <div id="user"> |
Bri Prebilic Cole | 5d6153e | 2015-05-28 12:03:21 -0700 | [diff] [blame] | 5 | <div class="main-left" ng-class="{family: isFamily}"> |
| 6 | <table class="user-info"> |
| 7 | <tr> |
| 8 | <th class="topLeft">Name</th> |
| 9 | <th ng-class="{topRight: !isFamily}">Mac</th> |
| 10 | </tr> |
| 11 | <tr ng-repeat="user in users" class="fadein"> |
| 12 | <td>{{user.name}}</td> |
| 13 | <td>{{user.mac}}</td> |
| 14 | </tr> |
| 15 | </table> |
| 16 | </div> |
Bri Prebilic Cole | d050a4b | 2015-05-27 15:53:30 -0700 | [diff] [blame] | 17 | |
Bri Prebilic Cole | 5d6153e | 2015-05-28 12:03:21 -0700 | [diff] [blame] | 18 | <div class="main-right" ng-class="{family: isFamily}"> |
| 19 | <form ng-if="isFamily" |
| 20 | name="changeLevels"> |
| 21 | <table class="user-form"> |
| 22 | <tr> |
| 23 | <th class="topRight">Select Site Rating</th> |
| 24 | </tr> |
| 25 | <tr ng-repeat="user in users" class="options"> |
| 26 | <td> |
| 27 | <select ng-init="newLevels[user.id]=user.profile.url_filter.level" |
| 28 | ng-model="newLevels[user.id]" |
| 29 | ng-options="l for l in levels"> |
| 30 | </select> |
| 31 | </td> |
| 32 | </tr> |
| 33 | <tr> |
| 34 | <td class="buttons"> |
| 35 | <icon size="20px" id="checkMark" |
| 36 | ng-show="showCheck"></icon> |
| 37 | <input type="reset" value="Cancel" |
| 38 | ng-click="cancelChanges(changeLevels)" |
| 39 | ng-disabled="changeLevels.$pristine"> |
| 40 | <input type="button" value="Apply" |
| 41 | ng-click="applyChanges(changeLevels)" |
| 42 | ng-disabled="changeLevels.$pristine"> |
| 43 | </td> |
| 44 | </tr> |
| 45 | </table> |
| 46 | </form> |
| 47 | </div> |
Bri Prebilic Cole | e2958f2 | 2015-05-26 17:18:23 -0700 | [diff] [blame] | 48 | </div> |
Bri Prebilic Cole | 3c3361c | 2015-05-19 12:07:29 -0700 | [diff] [blame] | 49 | </div> |