blob: 6aca96182d7adeb9ee5aba41522e077a3a6b38a6 [file] [log] [blame]
Matteo Scandolo574c73f2016-03-01 17:08:45 -08001<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">&times;</span></button>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -08006 <h4 class="modal-title">Manage subscriber:</h4>
Matteo Scandolo574c73f2016-03-01 17:08:45 -08007 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -08008 <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 Scandolof79f0b32016-09-30 10:23:10 -070015 <a ng-click="vm.subscriber.features.status = 'enabled'"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080016 class="btn btn-block"
Matteo Scandolof79f0b32016-09-30 10:23:10 -070017 ng-class="{'btn-primary': vm.subscriber.features.status === 'enabled' ,'btn-default': vm.subscriber.features.status !== 'enabled'}"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080018 >Enabled</a>
19 </div>
20 <div class="col-xs-6">
Matteo Scandolof79f0b32016-09-30 10:23:10 -070021 <a ng-click="vm.subscriber.features.status = 'suspended'"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080022 class="btn btn-block"
Matteo Scandolof79f0b32016-09-30 10:23:10 -070023 ng-class="{'btn-primary': vm.subscriber.features.status === 'suspended' ,'btn-default': vm.subscriber.features.status !== 'suspended'}"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080024 >Suspended</a>
25 </div>
Matteo Scandolo574c73f2016-03-01 17:08:45 -080026 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080027 <div class="row">
28 <div class="col-xs-6">
Matteo Scandolof79f0b32016-09-30 10:23:10 -070029 <a ng-click="vm.subscriber.features.status = 'delinquent'"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080030 class="btn btn-block"
Matteo Scandolof79f0b32016-09-30 10:23:10 -070031 ng-class="{'btn-primary': vm.subscriber.features.status === 'delinquent' ,'btn-default': vm.subscriber.features.status !== 'delinquent'}"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080032 >Delinquent <br> payment</a>
33 </div>
34 <div class="col-xs-6">
Matteo Scandolof79f0b32016-09-30 10:23:10 -070035 <a ng-click="vm.subscriber.features.status = 'copyrightviolation'"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080036 class="btn btn-block"
Matteo Scandolof79f0b32016-09-30 10:23:10 -070037 ng-class="{'btn-primary': vm.subscriber.features.status === 'copyrightviolation' ,'btn-default': vm.subscriber.features.status !== 'copyrightviolation'}"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080038 >Copyright <br> violation</a>
39 </div>
40 </div>
41 <div class="row">
42 <div class="col-xs-6">
43 <label>Uplink Speed</label>
Matteo Scandolo79108192016-03-08 09:33:26 -080044 <div class="input-group">
Matteo Scandolof79f0b32016-09-30 10:23:10 -070045 <input type="number" class="form-control small-padding" ng-model="vm.subscriber.features.uplink_speed"/>
Matteo Scandolo35d1c3a2016-03-08 17:01:17 -080046 <span class="input-group-addon">Mbps</span>
Matteo Scandolo79108192016-03-08 09:33:26 -080047 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080048 </div>
49 <div class="col-xs-6">
50 <label>Downlink Speed</label>
Matteo Scandolo79108192016-03-08 09:33:26 -080051 <div class="input-group">
Matteo Scandolof79f0b32016-09-30 10:23:10 -070052 <input type="number" class="form-control small-padding" ng-model="vm.subscriber.features.downlink_speed"/>
Matteo Scandolo35d1c3a2016-03-08 17:01:17 -080053 <span class="input-group-addon">Mbps</span>
Matteo Scandolo79108192016-03-08 09:33:26 -080054 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080055 </div>
56 </div>
57 <div class="row">
58 <div class="col-xs-6">
Matteo Scandolo04e6c8c2016-03-10 10:41:47 -080059 <label>Enable Internet</label>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080060 </div>
61 <div class="col-xs-6">
62 <a
Matteo Scandolofafd7f62016-10-05 13:25:06 -070063 ng-click="vm.subscriber.features.uverse = !vm.subscriber.features.uverse"
Matteo Scandolof79f0b32016-09-30 10:23:10 -070064 ng-class="{'btn-success': vm.subscriber.features.enable_uverse, 'btn-danger': !vm.subscriber.features.enable_uverse}"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080065 class="btn btn-block">
Matteo Scandolofafd7f62016-10-05 13:25:06 -070066 <span ng-show="vm.subscriber.features.uverse === true">Enabled</span>
67 <span ng-show="vm.subscriber.features.uverse !== true">Disabled</span>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080068 </a>
69 </div>
Matteo Scandolo574c73f2016-03-01 17:08:45 -080070 </div>
71 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080072 <div class="modal-footer" ng-show="vm.success || vm.formError">
73 <div class="alert alert-success" ng-show="vm.success">
74 {{vm.success}}
Matteo Scandolo574c73f2016-03-01 17:08:45 -080075 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080076 <div class="alert alert-danger" ng-show="vm.formError">
77 {{vm.formError}}
Matteo Scandolo574c73f2016-03-01 17:08:45 -080078 </div>
79 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080080 <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 Scandolo574c73f2016-03-01 17:08:45 -080085 </div><!-- /.modal-content -->
86 </div><!-- /.modal-dialog -->
87</div><!-- /.modal -->