Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [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 |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 10 | xz |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 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 | |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 18 | <div class="elinepanel"> |
| 19 | <div class="text-right"> |
| 20 | <a href ng-click="vm.vng.elinePanel({}, vm.vng.eline, false)"> |
| 21 | <i class="fa fa-remove" style="color:#fff;"></i> |
| 22 | </a> |
| 23 | </div> |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 24 | <h1>ELine Overview</h1> |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 25 | <form ng-submit="vm.saveEline(vm.vng.eline)"> |
| 26 | <div class="form-group" ng-hide="vm.vng.createMode"> |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 27 | <label>ID</label><br/> |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 28 | <p>{{vm.vng.eline.id}}</p> |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 29 | </div> |
| 30 | <div class="form-group"> |
| 31 | <label for="name">Name</label> |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 32 | <input required class="form-control" id="name" type="text" ng-value="vm.vng.eline.name" ng-model="vm.vng.eline.name"> |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 33 | </div> |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 34 | <div class="form-group" ng-hide="vm.vng.createMode"> |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 35 | <label>Backend Status</label><br/> |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 36 | <p>{{vm.vng.eline.backend_status}}</p> |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 37 | </div> |
| 38 | <div class="form-group"> |
| 39 | <label for="cpi1">Connect point 1 ID</label> |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 40 | <input required class="form-control" id="cpi1" type="text" ng-value="vm.vng.eline.connect_point_1_id" ng-model="vm.vng.eline.connect_point_1_id"> |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 41 | </div> |
| 42 | <div class="form-group"> |
| 43 | <label for="cpi2">Connect point 2 ID</label> |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 44 | <input required class="form-control" id="cpi2" type="text" ng-value="vm.vng.eline.connect_point_2_id" ng-model="vm.vng.eline.connect_point_2_id"> |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 45 | </div> |
| 46 | <div class="form-group"> |
| 47 | <label for="bwps">Bandwidth Profile</label> |
| 48 | <select required class="form-control" |
| 49 | id="bwps" |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 50 | ng-model="vm.vng.eline.bwp" |
| 51 | ng-options="bwp.name as bwp.name for bwp in vm.vng.bwps | orderBy:'name'" |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 52 | > |
| 53 | </select> |
| 54 | </div> |
| 55 | <div class="form-group"> |
| 56 | <label for="sitename">CORD Site Name</label> |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 57 | <input required class="form-control" id="sitename" type="text" ng-value="vm.vng.eline.cord_site_name" ng-model="vm.vng.eline.cord_site_name"> |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 58 | </div> |
| 59 | <div class="form-group"> |
| 60 | <label for="vlanids">Vlan IDs</label> |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 61 | <input required class="form-control" id="vlanids" type="text" ng-value="vm.vng.eline.vlanids" ng-model="vm.vng.eline.vlanids"> |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 62 | </div> |
| 63 | <div class="form-group" style="text-align: center"> |
| 64 | <button type="submit" class="btn btn-success btn-block">Save Changes</button> |
| 65 | </div> |
| 66 | </form> |
Max Chu | 2de11f8 | 2017-09-06 08:49:21 -0700 | [diff] [blame^] | 67 | <button type="button" class="btn btn-danger btn-block" ng-click="vm.deleteEline(vm.vng.eline)" ng-hide="vm.vng.createMode">Delete Eline</button> |
Andrea Campanella | 420e4b4 | 2017-09-01 16:51:03 +0200 | [diff] [blame] | 68 | </div> |