Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 1 | <div class="modal fade" ng-class="{in: vm.open}" tabindex="-1" role="dialog"> |
| 2 | <div class="modal-dialog modal-sm"> |
| 3 | <div class="modal-content"> |
| 4 | <div class="modal-header"> |
| 5 | <button ng-click="vm.close()" type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 6 | <h4 class="modal-title">Manage subscriber:</h4> |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 7 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 8 | <form name="vm.subscriber-detail"> |
| 9 | <div class="modal-body"> |
| 10 | <div class="row"> |
| 11 | <div class="col-xs-12"> |
| 12 | <label>Status</label> |
| 13 | </div> |
| 14 | <div class="col-xs-6"> |
| 15 | <a ng-click="vm.subscriber.status = 'enabled'" |
| 16 | class="btn btn-block" |
| 17 | ng-class="{'btn-primary': vm.subscriber.status === 'enabled' ,'btn-default': vm.subscriber.status !== 'enabled'}" |
| 18 | >Enabled</a> |
| 19 | </div> |
| 20 | <div class="col-xs-6"> |
| 21 | <a ng-click="vm.subscriber.status = 'suspended'" |
| 22 | class="btn btn-block" |
| 23 | ng-class="{'btn-primary': vm.subscriber.status === 'suspended' ,'btn-default': vm.subscriber.status !== 'suspended'}" |
| 24 | >Suspended</a> |
| 25 | </div> |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 26 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 27 | <div class="row"> |
| 28 | <div class="col-xs-6"> |
| 29 | <a ng-click="vm.subscriber.status = 'delinquent'" |
| 30 | class="btn btn-block" |
| 31 | ng-class="{'btn-primary': vm.subscriber.status === 'delinquent' ,'btn-default': vm.subscriber.status !== 'delinquent'}" |
| 32 | >Delinquent <br> payment</a> |
| 33 | </div> |
| 34 | <div class="col-xs-6"> |
| 35 | <a ng-click="vm.subscriber.status = 'copyrightviolation'" |
| 36 | class="btn btn-block" |
| 37 | ng-class="{'btn-primary': vm.subscriber.status === 'copyrightviolation' ,'btn-default': vm.subscriber.status !== 'copyrightviolation'}" |
| 38 | >Copyright <br> violation</a> |
| 39 | </div> |
| 40 | </div> |
| 41 | <div class="row"> |
| 42 | <div class="col-xs-6"> |
| 43 | <label>Uplink Speed</label> |
| 44 | <input type="number" class="form-control" ng-model="vm.subscriber.uplink_speed"/> |
| 45 | </div> |
| 46 | <div class="col-xs-6"> |
| 47 | <label>Downlink Speed</label> |
| 48 | <input type="number" class="form-control" ng-model="vm.subscriber.downlink_speed"/> |
| 49 | </div> |
| 50 | </div> |
| 51 | <div class="row"> |
| 52 | <div class="col-xs-6"> |
| 53 | <label>Enable Uverse</label> |
| 54 | </div> |
| 55 | <div class="col-xs-6"> |
| 56 | <a |
| 57 | ng-click="vm.subscriber.enable_uverse = !vm.subscriber.enable_uverse" |
| 58 | ng-class="{'btn-success': vm.subscriber.enable_uverse, 'btn-danger': !vm.subscriber.enable_uverse}" |
| 59 | class="btn btn-block"> |
| 60 | <span ng-show="vm.subscriber.enable_uverse === true">Enabled</span> |
| 61 | <span ng-show="vm.subscriber.enable_uverse !== true">Disabled</span> |
| 62 | </a> |
| 63 | </div> |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 64 | </div> |
| 65 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 66 | <div class="modal-footer" ng-show="vm.success || vm.formError"> |
| 67 | <div class="alert alert-success" ng-show="vm.success"> |
| 68 | {{vm.success}} |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 69 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 70 | <div class="alert alert-danger" ng-show="vm.formError"> |
| 71 | {{vm.formError}} |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 72 | </div> |
| 73 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 74 | <div class="modal-footer"> |
| 75 | <button ng-click="vm.close()" type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
| 76 | <button ng-click="vm.updateSubscriber(vm.subscriber)" type="button" class="btn btn-primary">Save</button> |
| 77 | </div> |
| 78 | </form> |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 79 | </div><!-- /.modal-content --> |
| 80 | </div><!-- /.modal-dialog --> |
| 81 | </div><!-- /.modal --> |