blob: 35fbee8d944d785bc31745880e0ae58a03063817 [file] [log] [blame]
Matteo Scandolod2044a42017-08-07 16:08:28 -07001
2<!--
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
18
Matteo Scandolo574c73f2016-03-01 17:08:45 -080019<div class="modal fade" ng-class="{in: vm.open}" tabindex="-1" role="dialog">
20 <div class="modal-dialog modal-sm">
21 <div class="modal-content">
22 <div class="modal-header">
23 <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 -080024 <h4 class="modal-title">Manage subscriber:</h4>
Matteo Scandolo574c73f2016-03-01 17:08:45 -080025 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080026 <form name="vm.subscriber-detail">
27 <div class="modal-body">
28 <div class="row">
29 <div class="col-xs-12">
30 <label>Status</label>
31 </div>
32 <div class="col-xs-6">
Matteo Scandolof79f0b32016-09-30 10:23:10 -070033 <a ng-click="vm.subscriber.features.status = 'enabled'"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080034 class="btn btn-block"
Matteo Scandolof79f0b32016-09-30 10:23:10 -070035 ng-class="{'btn-primary': vm.subscriber.features.status === 'enabled' ,'btn-default': vm.subscriber.features.status !== 'enabled'}"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080036 >Enabled</a>
37 </div>
38 <div class="col-xs-6">
Matteo Scandolof79f0b32016-09-30 10:23:10 -070039 <a ng-click="vm.subscriber.features.status = 'suspended'"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080040 class="btn btn-block"
Matteo Scandolof79f0b32016-09-30 10:23:10 -070041 ng-class="{'btn-primary': vm.subscriber.features.status === 'suspended' ,'btn-default': vm.subscriber.features.status !== 'suspended'}"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080042 >Suspended</a>
43 </div>
Matteo Scandolo574c73f2016-03-01 17:08:45 -080044 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080045 <div class="row">
46 <div class="col-xs-6">
Matteo Scandolof79f0b32016-09-30 10:23:10 -070047 <a ng-click="vm.subscriber.features.status = 'delinquent'"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080048 class="btn btn-block"
Matteo Scandolof79f0b32016-09-30 10:23:10 -070049 ng-class="{'btn-primary': vm.subscriber.features.status === 'delinquent' ,'btn-default': vm.subscriber.features.status !== 'delinquent'}"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080050 >Delinquent <br> payment</a>
51 </div>
52 <div class="col-xs-6">
Matteo Scandolof79f0b32016-09-30 10:23:10 -070053 <a ng-click="vm.subscriber.features.status = 'copyrightviolation'"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080054 class="btn btn-block"
Matteo Scandolof79f0b32016-09-30 10:23:10 -070055 ng-class="{'btn-primary': vm.subscriber.features.status === 'copyrightviolation' ,'btn-default': vm.subscriber.features.status !== 'copyrightviolation'}"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080056 >Copyright <br> violation</a>
57 </div>
58 </div>
59 <div class="row">
60 <div class="col-xs-6">
61 <label>Uplink Speed</label>
Matteo Scandolo79108192016-03-08 09:33:26 -080062 <div class="input-group">
Matteo Scandolof79f0b32016-09-30 10:23:10 -070063 <input type="number" class="form-control small-padding" ng-model="vm.subscriber.features.uplink_speed"/>
Matteo Scandolo35d1c3a2016-03-08 17:01:17 -080064 <span class="input-group-addon">Mbps</span>
Matteo Scandolo79108192016-03-08 09:33:26 -080065 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080066 </div>
67 <div class="col-xs-6">
68 <label>Downlink Speed</label>
Matteo Scandolo79108192016-03-08 09:33:26 -080069 <div class="input-group">
Matteo Scandolof79f0b32016-09-30 10:23:10 -070070 <input type="number" class="form-control small-padding" ng-model="vm.subscriber.features.downlink_speed"/>
Matteo Scandolo35d1c3a2016-03-08 17:01:17 -080071 <span class="input-group-addon">Mbps</span>
Matteo Scandolo79108192016-03-08 09:33:26 -080072 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080073 </div>
74 </div>
75 <div class="row">
76 <div class="col-xs-6">
Matteo Scandolo04e6c8c2016-03-10 10:41:47 -080077 <label>Enable Internet</label>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080078 </div>
79 <div class="col-xs-6">
80 <a
Matteo Scandolofafd7f62016-10-05 13:25:06 -070081 ng-click="vm.subscriber.features.uverse = !vm.subscriber.features.uverse"
Matteo Scandolof79f0b32016-09-30 10:23:10 -070082 ng-class="{'btn-success': vm.subscriber.features.enable_uverse, 'btn-danger': !vm.subscriber.features.enable_uverse}"
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080083 class="btn btn-block">
Matteo Scandolofafd7f62016-10-05 13:25:06 -070084 <span ng-show="vm.subscriber.features.uverse === true">Enabled</span>
85 <span ng-show="vm.subscriber.features.uverse !== true">Disabled</span>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080086 </a>
87 </div>
Matteo Scandolo574c73f2016-03-01 17:08:45 -080088 </div>
89 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080090 <div class="modal-footer" ng-show="vm.success || vm.formError">
91 <div class="alert alert-success" ng-show="vm.success">
92 {{vm.success}}
Matteo Scandolo574c73f2016-03-01 17:08:45 -080093 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080094 <div class="alert alert-danger" ng-show="vm.formError">
95 {{vm.formError}}
Matteo Scandolo574c73f2016-03-01 17:08:45 -080096 </div>
97 </div>
Matteo Scandolo6c6e5942016-03-02 10:59:46 -080098 <div class="modal-footer">
99 <button ng-click="vm.close()" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
100 <button ng-click="vm.updateSubscriber(vm.subscriber)" type="button" class="btn btn-primary">Save</button>
101 </div>
102 </form>
Matteo Scandolo574c73f2016-03-01 17:08:45 -0800103 </div><!-- /.modal-content -->
104 </div><!-- /.modal-dialog -->
105</div><!-- /.modal -->