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 | |
Rizwan Haider | 8e5f477 | 2016-08-17 18:04:35 -0400 | [diff] [blame] | 19 | <div id="home" class="container-fluid"> |
| 20 | <div class="row"> |
| 21 | <div class="col-sm-6"> |
| 22 | <div class="panel panel-primary"> |
| 23 | <div class="panel-heading"> |
| 24 | <h3 class="panel-title">E-LINE MAP</h3> |
| 25 | </div> |
| 26 | <div class="panel-body"> |
| 27 | <elan-map ng-hide="!vm.eline" elan="[vm.eline]"></elan-map> |
| 28 | </div> |
| 29 | </div> |
| 30 | <div class="panel panel-primary"> |
| 31 | <div class="panel-heading"> |
| 32 | <h3 class="panel-title">E-LINE SERVICES</h3> |
| 33 | </div> |
| 34 | <div class="panel-body"> |
| 35 | <service-map ng-if="vm.eline" unis="vm.eline.SCA_ETH_Flow_Points" services="vm.activeServices"></service-map> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | <div class="col-sm-6"> |
| 40 | <div class="panel panel-primary service-container"> |
| 41 | <div class="panel-heading"> |
| 42 | <h3 class="panel-title">Add a service:</h3> |
| 43 | </div> |
| 44 | <div class="panel-body"> |
| 45 | <div class="row" ng-repeat="(k,v) in vm.availableServices"> |
| 46 | <div class="col-xs-12"> |
| 47 | <label>{{k | uppercase}}</label> |
| 48 | </div> |
| 49 | <div class="col-xs-{{12/v.length}}" ng-repeat="service in v"> |
| 50 | <a ng-click="vm.toggleService(service)" class="btn btn-block" |
| 51 | ng-class="{'btn-primary-border': !vm.isServiceActive(service), 'btn-primary': vm.isServiceActive(service)}">{{service.label}}</a> |
| 52 | </div> |
| 53 | </div> |
| 54 | </div> |
| 55 | </div> |
| 56 | <div class="row"> |
| 57 | <div class="col-sm-6"> |
| 58 | <div class="panel panel-primary animate-vertical" ng-hide="!vm.eline.SCA_ETH_Flow_Points[0]"> |
| 59 | <div class="panel-heading"> |
| 60 | <h3 class="panel-title">{{vm.eline.SCA_ETH_Flow_Points[0].scaEthFppUniN.name}}</h3> |
| 61 | </div> |
| 62 | <div class="panel-body"> |
| 63 | <div class="row"> |
| 64 | <div class="col-sm-12"> |
| 65 | <div class="input-group"> |
| 66 | <span class="input-group-addon">CIR</span> |
| 67 | <input b-to-mb ng-model="vm.eline.SCA_ETH_Flow_Points[0].scaEthFppUniN.interfaceCfgIngressBwp.bwpCfgCir" ng-value="'10'" class="form-control" type="number" required> |
| 68 | <span class="input-group-addon">Gb</span> |
| 69 | </div> |
| 70 | </div> |
| 71 | </div> |
| 72 | <div class="row"> |
| 73 | <div class="col-sm-12"> |
| 74 | <div class="input-group"> |
| 75 | <span class="input-group-addon">EIR</span> |
| 76 | <input b-to-mb ng-model="vm.eline.SCA_ETH_Flow_Points[0].scaEthFppUniN.interfaceCfgIngressBwp.bwpCfgEir" ng-value="'30'" class="form-control" type="number" required> |
| 77 | <span class="input-group-addon">Gb</span> |
| 78 | </div> |
| 79 | </div> |
| 80 | </div> |
| 81 | </div> |
| 82 | </div> |
| 83 | </div> |
| 84 | <div class="col-sm-6"> |
| 85 | <div class="panel panel-primary animate-vertical" ng-hide="!vm.eline.SCA_ETH_Flow_Points[1]"> |
| 86 | <div class="panel-heading"> |
| 87 | <h3 class="panel-title">{{vm.eline.SCA_ETH_Flow_Points[1].scaEthFppUniN.name}}</h3> |
| 88 | </div> |
| 89 | <div class="panel-body"> |
| 90 | <div class="row"> |
| 91 | <div class="col-sm-12"> |
| 92 | <div class="input-group"> |
| 93 | <span class="input-group-addon">CIR</span> |
| 94 | <input b-to-mb ng-model="vm.eline.SCA_ETH_Flow_Points[1].scaEthFppUniN.interfaceCfgIngressBwp.bwpCfgCir" ng-value="'10'" class="form-control" type="number" required> |
| 95 | <span class="input-group-addon">Gb</span> |
| 96 | </div> |
| 97 | </div> |
| 98 | </div> |
| 99 | <div class="row"> |
| 100 | <div class="col-sm-12"> |
| 101 | <div class="input-group"> |
| 102 | <span class="input-group-addon">EIR</span> |
| 103 | <input b-to-mb ng-model="vm.eline.SCA_ETH_Flow_Points[1].scaEthFppUniN.interfaceCfgIngressBwp.bwpCfgEir" ng-value="'30'" class="form-control" type="number" required> |
| 104 | <span class="input-group-addon">Gb</span> |
| 105 | </div> |
| 106 | </div> |
| 107 | </div> |
| 108 | </div> |
| 109 | </div> |
| 110 | </div> |
| 111 | </div> |
| 112 | <div class="panel panel-primary table-container sla"> |
| 113 | <table class="table"> |
| 114 | <thead> |
| 115 | <tr> |
| 116 | <th>SLA</th> |
| 117 | <th>Value</th> |
| 118 | <th>Unit</th> |
| 119 | </tr> |
| 120 | </thead> |
| 121 | <tbody> |
| 122 | <tr ng-repeat="sla in vm.slas"> |
| 123 | <td>{{sla.name}}</td> |
| 124 | <td class="text-right"> |
| 125 | <input class="form-control input-sm" type="text" ng-model="sla.default"></input> |
| 126 | </td> |
| 127 | <td>{{sla.unit}}</td> |
| 128 | </tr> |
| 129 | </tbody> |
| 130 | </table> |
| 131 | </div> |
| 132 | <div class="row"> |
| 133 | <div class="col-xs-12"> |
| 134 | <div ng-show="!saved"ng-click="vm.saveEline()" class="btn btn-success btn-block btn-lg">Save</div> |
| 135 | <div ng-show="saved"class="form-success btn-blockanimate-fade">Done</div> |
| 136 | </div> |
| 137 | </div> |
| 138 | </div> |
| 139 | </div> |
| 140 | </div> |