aboutsummaryrefslogtreecommitdiffstats
path: root/vid/src/main/webapp/app/vid/scripts/view-models/aaiSubViewEdit.htm
blob: 53c9a6b047ded21f57715fa8cb9ce2f042f92c7e (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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!--
  ============LICENSE_START=======================================================
  VID
  ================================================================================
  Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
  ================================================================================
  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.
  ============LICENSE_END=========================================================
  -->

<div ng-controller="aaiSubscriberController" ng-cloak>

	<div popup-window class="popupContents" ngx-show="{{popup.isVisible}}"
		ng-cloak>
		<div ng-include="'app/vid/scripts/view-models/creationDialog.htm'"></div>
		<div ng-include="'app/vid/scripts/view-models/deletionDialog.htm'"></div>
		<div ng-include="'app/vid/scripts/view-models/detailsDialog.htm'"></div>
	</div> 

	<div>
		<div class="statusLine">
			<img src="app/vid/images/spinner.gif"
				ng-class="{true:'aaiVisible', false:'aaiHidden'}[isSpinnerVisible]"></img>
			<label>Status:</label><span class="status">{{status}}</span>
		</div>

		<h2 class="heading2">
			<center>VIEW/EDIT SERVICE INSTANCE <a class="btn btn-primary btn-xs pull-right" ng-click="reloadRoute();" ><span class="glyphicon glyphicon-refresh"></span></a></center>
			</h2>
			</center>
		</h2>
		<br>


		<center>
			<table border="1">
				<tr>
					<th style="text-align: center" width="33%">SUBSCRIBER:
						{{globalCustomerId}}</th>
					<th style="text-align: center" width="34%">SERVICE TYPE:
						{{serviceType}}</th>
					<th style="text-align: center" width="33%">SERVICE INSTANCE
						ID: {{serviceInstanceId}}</th>
				<tr>
				<tr>
					<td colspan='3' style="text-align: center">Service Instance
						Name: {{serviceInstanceName || "Not defined"}}
					</td>
				<tr>
			</table>

		</center>


		<br>

		<div ng-init="autoPopulateViewEdit();">
			<script type="text/ng-template" id="nodes_renderer.html">
  <div ui-tree-handle data-drag-enabled="false" class="tree-node tree-node-content">
    <a class="btn btn-success btn-xs" ng-if="node.nodes && node.nodes.length > 0" data-nodrag ng-click="toggle(this)"><span
        class="glyphicon"
        ng-class="{
          'glyphicon-chevron-right': collapsed,
          'glyphicon-chevron-down': !collapsed
        }"></span></a>
   <div class='btn'>{{node.nodeType}}</div><div class='btn'>{{node.nodeId}}</div><div class='btn'>{{node.nodeStatus}}</div>
	
	<a class="pull-right btn btn-danger btn-xs" ng-if="node.delete != false" data-nodrag ng-click="showVnfDetails(node);"><span class="glyphicon glyphicon-remove"></a> 
    <a class="pull-right btn btn-primary btn-xs" ng-if="node.info != false" data-nodrag ng-click="showVnfDetails();"><span
        class="glyphicon glyphicon-zoom-in"></span></a>
    
  </div>
  <ol ui-tree-nodes ng-model="node.nodes" ng-class="{hidden: collapsed}">
    <li ng-repeat="node in node.nodes" ui-tree-node ng-include="'nodes_renderer.html'">
    </li>
  </ol>
</script>
			<b>EXISTING</b>
			<div ng-controller="TreeCtrl">
				<div>
					<div ui-tree id="tree-root" >
						<ol ui-tree-nodes ng-model="treeList"">
							<li ng-repeat="node in treeList" ui-tree-node data-nodrag
								ng-include="'nodes_renderer.html'"></li>
						</ol>
					</div>
				</div>

			</div>
			<b>AVAILABLE</b>
			
						<script type="text/ng-template" id="nodes_renderer2.html">
  <div ui-tree-handle data-drag-enabled="false" class="tree-node tree-node-content" >
    <a class="btn btn-success btn-xs" ng-if="node.nodes && node.nodes.length > 0" data-nodrag ng-click="toggle(this)"><span
        class="glyphicon"
        ng-class="{
          'glyphicon-chevron-right': collapsed,
          'glyphicon-chevron-down': !collapsed
        }"></span></a>
    <div class='btn'>{{node.nodeType}}</div><div class='btn'>{{node.nodeId}}</div><div class='btn'>{{node.nodeStatus}}</div>
	
	<a class="pull-right btn btn-primary btn-xs" ng-if="node.delete != false" data-nodrag ng-click="callDelete(this)">
		<span class="glyphicon glyphicon-plus"></span>
	</a>

    <a class="pull-right btn btn-primary btn-xs" ng-if="node.info != false" data-nodrag ng-click="showInfoDialog(node.itemType, node.nodeId, node.nodeType);">
		<span class="glyphicon glyphicon-zoom-in"></span>
	</a>
    
  </div>
  <ol ui-tree-nodes ng-model="node.nodes" ng-class="{hidden: collapsed}">
    <li ng-repeat="node in node.nodes" ui-tree-node ng-include="'nodes_renderer2.html'">
    </li>
  </ol>
</script>
				
			<div ng-controller="TreeCtrl">
				<div>
					<div ui-tree id="tree-root">
						<ol ui-tree-nodes ng-model="availableTreeList">
							<li ng-repeat="node in availableTreeList" ui-tree-node
								data-nodrag ng-include="'nodes_renderer2.html'"></li>
						</ol>
					</div>
				</div>
			</div>
		</div>
		<div>
		
		<button type="button" " att-button
					btn-type="primary" size="small">Show Details</button>
		
			<pre>
  				{{inventoryResponseItem | json}}
			</pre>
		</div>
	</div>