Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | |
| 2 | <!-- |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 19 | <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">×</span></button> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 24 | <h4 class="modal-title">Manage subscriber:</h4> |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 25 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 26 | <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 Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 33 | <a ng-click="vm.subscriber.features.status = 'enabled'" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 34 | class="btn btn-block" |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 35 | 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] | 36 | >Enabled</a> |
| 37 | </div> |
| 38 | <div class="col-xs-6"> |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 39 | <a ng-click="vm.subscriber.features.status = 'suspended'" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 40 | class="btn btn-block" |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 41 | 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] | 42 | >Suspended</a> |
| 43 | </div> |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 44 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 45 | <div class="row"> |
| 46 | <div class="col-xs-6"> |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 47 | <a ng-click="vm.subscriber.features.status = 'delinquent'" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 48 | class="btn btn-block" |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 49 | 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] | 50 | >Delinquent <br> payment</a> |
| 51 | </div> |
| 52 | <div class="col-xs-6"> |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 53 | <a ng-click="vm.subscriber.features.status = 'copyrightviolation'" |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 54 | class="btn btn-block" |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 55 | 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] | 56 | >Copyright <br> violation</a> |
| 57 | </div> |
| 58 | </div> |
| 59 | <div class="row"> |
| 60 | <div class="col-xs-6"> |
| 61 | <label>Uplink Speed</label> |
Matteo Scandolo | 7910819 | 2016-03-08 09:33:26 -0800 | [diff] [blame] | 62 | <div class="input-group"> |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 63 | <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] | 64 | <span class="input-group-addon">Mbps</span> |
Matteo Scandolo | 7910819 | 2016-03-08 09:33:26 -0800 | [diff] [blame] | 65 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 66 | </div> |
| 67 | <div class="col-xs-6"> |
| 68 | <label>Downlink Speed</label> |
Matteo Scandolo | 7910819 | 2016-03-08 09:33:26 -0800 | [diff] [blame] | 69 | <div class="input-group"> |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 70 | <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] | 71 | <span class="input-group-addon">Mbps</span> |
Matteo Scandolo | 7910819 | 2016-03-08 09:33:26 -0800 | [diff] [blame] | 72 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 73 | </div> |
| 74 | </div> |
| 75 | <div class="row"> |
| 76 | <div class="col-xs-6"> |
Matteo Scandolo | 04e6c8c | 2016-03-10 10:41:47 -0800 | [diff] [blame] | 77 | <label>Enable Internet</label> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 78 | </div> |
| 79 | <div class="col-xs-6"> |
| 80 | <a |
Matteo Scandolo | fafd7f6 | 2016-10-05 13:25:06 -0700 | [diff] [blame] | 81 | ng-click="vm.subscriber.features.uverse = !vm.subscriber.features.uverse" |
Matteo Scandolo | f79f0b3 | 2016-09-30 10:23:10 -0700 | [diff] [blame] | 82 | 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] | 83 | class="btn btn-block"> |
Matteo Scandolo | fafd7f6 | 2016-10-05 13:25:06 -0700 | [diff] [blame] | 84 | <span ng-show="vm.subscriber.features.uverse === true">Enabled</span> |
| 85 | <span ng-show="vm.subscriber.features.uverse !== true">Disabled</span> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 86 | </a> |
| 87 | </div> |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 88 | </div> |
| 89 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 90 | <div class="modal-footer" ng-show="vm.success || vm.formError"> |
| 91 | <div class="alert alert-success" ng-show="vm.success"> |
| 92 | {{vm.success}} |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 93 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 94 | <div class="alert alert-danger" ng-show="vm.formError"> |
| 95 | {{vm.formError}} |
Matteo Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 96 | </div> |
| 97 | </div> |
Matteo Scandolo | 6c6e594 | 2016-03-02 10:59:46 -0800 | [diff] [blame] | 98 | <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 Scandolo | 574c73f | 2016-03-01 17:08:45 -0800 | [diff] [blame] | 103 | </div><!-- /.modal-content --> |
| 104 | </div><!-- /.modal-dialog --> |
| 105 | </div><!-- /.modal --> |