blob: 0f3c5759951364dc15133d42364c870ca6935a0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|
<!--
Copyright 2016-2017 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="templatemo-content-wrapper" ng-controller="lcmCtrl as ctrl" ng-init="ctrl.init()">
<div class="templatemo-content">
<h1 style="margin-bottom:40px">Life Cycle Manager</h1>
<uib-tabset active="active">
<uib-tab heading="Services">
<div id="serviceTable" style="margin-top:20px;">
<label>
<span>Customer</span>
<span class="required">*</span>
</label>
<select id="customer" ng-change="ctrl.customerChanged()" ng-model="ctrl.customer" ng-options="c.name for c in ctrl.customers">
<option value="">--select--</option>
</select>
<label style="margin-left:10px">
<span>Service Type</span>
<span class="required">*</span>
</label>
<select id="serviceType" ng-change="ctrl.serviceTypeChanged()" ng-model="ctrl.serviceType" ng-options="t.name for t in ctrl.serviceTypes">
<option value="">--select--</option>
</select>
<button id="createService" class="btn btn-primary" style="margin-bottom:10px;margin-left:10px" ng-click="ctrl.openCreateServiceDialog()">
<span>Create</span>
</button>
<table class="table table-striped table-hover table-bordered" style="margin:2px">
<thead>
<tr>
<th>Service Instance Id</th>
<th>Service Name</th>
<th>Service Type</th>
<th>Action</th>
</tr>
</thead>
<tbody id="bb">
<tr ng-repeat="serviceInstance in ctrl.serviceInstances">
<td>{{serviceInstance.serviceInstanceId}}</td>
<td>{{serviceInstance.serviceInstanceName}}</td>
<td>{{serviceInstance.serviceType}}</td>
<td><button class="btn btn-primary" ng-click="ctrl.deleteService(serviceInstance)">Delete</button></td>
</tr>
</tbody>
</table>
</div>
</uib-tab>
<uib-tab heading="Vnf/NS Packages">
<div id="vnfNsPackages" style="margin-top:20px;">
<table id="onbaordTable" class="table table-striped table-hover table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="package in ctrl.packages">
<td>{{package.name}}</td>
<td>{{package.type}}</td>
<td>
<button class="btn btn-primary onboard-button" ng-click="ctrl.packageOnboard(package)">Onboard</button>
</td>
</tr>
</tbody>
</table>
</div>
</uib-tab>
</uib-tabset>
</div>
<!-- Modal -->
<div class="modal fade" id="confirmModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span><span class="sr-only">Close</span>
</button>
<h4 class="modal-title" id="myModalLabel">Are you sure you want to sign out?</h4>
</div>
<div class="modal-footer">
<a href="sign-in.html" class="btn btn-primary">Yes</a>
<button type="button" class="btn btn-default" data-dismiss="modal">No</button>
</div>
</div>
</div>
</div>
|