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"> |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 15 | <a ng-click="vm.subscriber.features.status = 'enabled'" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 16 | class="btn btn-block" |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 17 | ng-class="{'btn-primary': vm.subscriber.features.status === 'enabled' ,'btn-default': vm.subscriber.features.status !== 'enabled'}" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 18 | >Enabled</a> |
| 19 | </div> |
| 20 | <div class="col-xs-6"> |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 21 | <a ng-click="vm.subscriber.features.status = 'suspended'" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 22 | class="btn btn-block" |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 23 | ng-class="{'btn-primary': vm.subscriber.features.status === 'suspended' ,'btn-default': vm.subscriber.features.status !== 'suspended'}" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 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"> |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 29 | <a ng-click="vm.subscriber.features.status = 'delinquent'" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 30 | class="btn btn-block" |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 31 | ng-class="{'btn-primary': vm.subscriber.features.status === 'delinquent' ,'btn-default': vm.subscriber.features.status !== 'delinquent'}" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 32 | >Delinquent <br> payment</a> |
| 33 | </div> |
| 34 | <div class="col-xs-6"> |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 35 | <a ng-click="vm.subscriber.features.status = 'copyrightviolation'" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 36 | class="btn btn-block" |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 37 | ng-class="{'btn-primary': vm.subscriber.features.status === 'copyrightviolation' ,'btn-default': vm.subscriber.features.status !== 'copyrightviolation'}" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 38 | >Copyright <br> violation</a> |
| 39 | </div> |
| 40 | </div> |
| 41 | <div class="row"> |
| 42 | <div class="col-xs-6"> |
| 43 | <label>Uplink Speed</label> |
Matteo Scandolo | 7910819 | 2016-03-08 09:33:26 -0800 | [diff] [blame] | 44 | <div class="input-group"> |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 45 | <input type="number" class="form-control small-padding" ng-model="vm.subscriber.features.uplink_speed"/> |
Matteo Scandolo | 35d1c3a | 2016-03-08 17:01:17 -0800 | [diff] [blame] | 46 | <span class="input-group-addon">Mbps</span> |
Matteo Scandolo | 7910819 | 2016-03-08 09:33:26 -0800 | [diff] [blame] | 47 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 48 | </div> |
| 49 | <div class="col-xs-6"> |
| 50 | <label>Downlink Speed</label> |
Matteo Scandolo | 7910819 | 2016-03-08 09:33:26 -0800 | [diff] [blame] | 51 | <div class="input-group"> |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 52 | <input type="number" class="form-control small-padding" ng-model="vm.subscriber.features.downlink_speed"/> |
Matteo Scandolo | 35d1c3a | 2016-03-08 17:01:17 -0800 | [diff] [blame] | 53 | <span class="input-group-addon">Mbps</span> |
Matteo Scandolo | 7910819 | 2016-03-08 09:33:26 -0800 | [diff] [blame] | 54 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 55 | </div> |
| 56 | </div> |
| 57 | <div class="row"> |
| 58 | <div class="col-xs-6"> |
Matteo Scandolo | 04e6c8c | 2016-03-10 10:41:47 -0800 | [diff] [blame] | 59 | <label>Enable Internet</label> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 60 | </div> |
| 61 | <div class="col-xs-6"> |
| 62 | <a |
Matteo Scandolo | fafd7f6 | 2016-10-05 13:25:06 -0700 | [diff] [blame] | 63 | ng-click="vm.subscriber.features.uverse = !vm.subscriber.features.uverse" |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 64 | ng-class="{'btn-success': vm.subscriber.features.enable_uverse, 'btn-danger': !vm.subscriber.features.enable_uverse}" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 65 | class="btn btn-block"> |
Matteo Scandolo | fafd7f6 | 2016-10-05 13:25:06 -0700 | [diff] [blame] | 66 | <span ng-show="vm.subscriber.features.uverse === true">Enabled</span> |
| 67 | <span ng-show="vm.subscriber.features.uverse !== true">Disabled</span> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 68 | </a> |
| 69 | </div> |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 70 | </div> |
| 71 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 72 | <div class="modal-footer" ng-show="vm.success || vm.formError"> |
| 73 | <div class="alert alert-success" ng-show="vm.success"> |
| 74 | {{vm.success}} |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 75 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 76 | <div class="alert alert-danger" ng-show="vm.formError"> |
| 77 | {{vm.formError}} |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 78 | </div> |
| 79 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 80 | <div class="modal-footer"> |
| 81 | <button ng-click="vm.close()" type="button" class="btn btn-default" data-dismiss="modal">Close</button> |
| 82 | <button ng-click="vm.updateSubscriber(vm.subscriber)" type="button" class="btn btn-primary">Save</button> |
| 83 | </div> |
| 84 | </form> |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 85 | </div><!-- /.modal-content --> |
| 86 | </div><!-- /.modal-dialog --> |
| 87 | </div><!-- /.modal --> |