blob: 105ff0b581a5053ffe10be02417f61beb0d5e0cf [file] [log] [blame]
Ofir Sonsino9dfd7e22017-09-20 13:20:42 +03001<link rel="stylesheet" type="text/css"
2 href="app/vid/test/testViewEdit.css" />
3
4<script src="app/vid/test/testAaiData.js"></script>
5<script src="app/vid/test/testViewEdit.js"></script>
6
7<link rel="stylesheet" type="text/css" href="app/vid/styles/dialogs.css" />
8
9<script src="app/vid/scripts/controller/creationDialogController.js"></script>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020010<script src="app/vid/scripts/controller/deleteResumeDialogController.js"></script>
Ofir Sonsino9dfd7e22017-09-20 13:20:42 +030011<script src="app/vid/scripts/controller/detailsDialogController.js"></script>
12<script src="app/vid/scripts/controller/statusDialogController.js"></script>
13<script src="app/vid/scripts/controller/msoCommitController.js"></script>
14
15<script src="app/vid/scripts/services/aaiService.js"></script>
16<script src="app/vid/scripts/services/asdcService.js"></script>
17<script src="app/vid/scripts/services/creationService.js"></script>
18<script src="app/vid/scripts/services/dataService.js"></script>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020019<script src="app/vid/scripts/services/deleteResumeService.js"></script>
Ofir Sonsino9dfd7e22017-09-20 13:20:42 +030020<script src="app/vid/scripts/services/detailsService.js"></script>
21<script src="app/vid/scripts/services/statusService.js"></script>
22<script src="app/vid/scripts/services/componentService.js"></script>
23<script src="app/vid/scripts/services/msoService.js"></script>
24<script src="app/vid/scripts/services/propertyService.js"></script>
25<script src="app/vid/scripts/services/utilityService.js"></script>
26
27<script src="app/vid/scripts/directives/extensionsDirective.js"></script>
28<script src="app/vid/scripts/directives/parameterBlockDirective.js"></script>
29<script src="app/vid/scripts/directives/popupWindowDirective.js"></script>
30<script src="app/vid/scripts/directives/progressBarDirective.js"></script>
31
32<script src="app/vid/scripts/constants/componentConstants.js"></script>
33<script src="app/vid/scripts/constants/fieldConstants.js"></script>
34<script src="app/vid/scripts/constants/parameterConstants.js"></script>
35
36<!--
37 Read configuration properties from server-side properties settings and
38 pass to the test controller via the ng-include onload event.
39
40 Consider / investigate replacing this approach with an alternative
41 REST / Angular mechanism.
42-->
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020043<%@ page import="org.onap.vid.mso.*"%>
Ofir Sonsino9dfd7e22017-09-20 13:20:42 +030044<%@ page import="org.openecomp.portalsdk.core.util.SystemProperties"%>
45<%
46 String properties = "{msoMaxPolls:" + SystemProperties.getProperty(MsoProperties.MSO_MAX_POLLS)
47 + ",msoMaxPollingIntervalMsec:"
48 + SystemProperties.getProperty(MsoProperties.MSO_POLLING_INTERVAL_MSECS) + "}";
49%>
50
51<div ng-controller="testViewEditController"
52 ng-init="init(<%=properties%>);" ng-cloak>
53
54 <div popup-window class="popupContents" ngx-show="{{popup.isVisible}}"
55 ng-cloak>
56 <div ng-include="'app/vid/scripts/view-models/creationDialog.htm'"></div>
Ofir Sonsino1cfb0872018-01-31 17:19:00 +020057 <div ng-include="'app/vid/scripts/view-models/deleteResumeDialog.htm'"></div>
Ofir Sonsino9dfd7e22017-09-20 13:20:42 +030058 <div ng-include="'app/vid/scripts/view-models/detailsDialog.htm'"
59 onload="autoStartTest();"></div>
60 </div>
61
62 <h1 class="heading2">
63 <center>Test View Edit Page</center>
64 </h1>
65 <hr />
66 These buttons simulate the add, delete and "show details" (called
67 "script" in User Stories) icons (or buttons) that are expected on the
68 view / edit page.
69 <hr />
70 <div>
71 <input type="checkbox" ng-change="testMsoModeChanged();"
72 ng-model="isTestMsoMode"></input> <span>Use test MSO
73 controller</span>
74 </div>
75 <h3 ng-style="callbackStyle">CALLBACK: {{callbackResults}}</h3>
76 <table>
77 <tr>
78 <td>Service</td>
79 <td>
80 <button type="button" ng-click="createService();" att-button
81 btn-type="primary" size="small">Add</button>
82 </td>
83 <td>
84 <button type="button" ng-click="deleteService();" att-button
85 btn-type="primary" size="small">Delete</button>
86 </td>
87 <td>
88 <button type="button" ng-click="showServiceDetails();" att-button
89 btn-type="primary" size="small">Show Details</button>
90 </td>
91 </tr>
92 <tr>
93 <td>VNF</td>
94 <td>
95 <button type="button" ng-click="createVnf();" att-button
96 btn-type="primary" size="small">Add</button>
97 </td>
98 <td>
99 <button type="button" ng-click="deleteVnf();" att-button
100 btn-type="primary" size="small">Delete</button>
101 </td>
102 <td>
103 <button type="button" ng-click="showVnfDetails();" att-button
104 btn-type="primary" size="small">Show Details</button>
105 </td>
106 </tr>
107 <tr>
108 <td>VF Module</td>
109 <td>
110 <button type="button" ng-click="createVfModule();" att-button
111 btn-type="primary" size="small">Add</button>
112 </td>
113 <td>
114 <button type="button" ng-click="deleteVfModule();" att-button
115 btn-type="primary" size="small">Delete</button>
116 </td>
117 <td>
118 <button type="button" ng-click="showVfModuleDetails();" att-button
119 btn-type="primary" size="small">Show Details</button>
120 </td>
121 </tr>
122 <tr>
123 <td>Volume Group</td>
124 <td>
125 <button type="button" ng-click="createVolumeGroup();" att-button
126 btn-type="primary" size="small">Add</button>
127 </td>
128 <td>
129 <button type="button" ng-click="deleteVolumeGroup();" att-button
130 btn-type="primary" size="small">Delete</button>
131 </td>
132 <td>
133 <button type="button" ng-click="showVolumeGroupDetails();"
134 att-button btn-type="primary" size="small">Show Details</button>
135 </td>
136 </tr>
137 <tr>
138 <td>Network</td>
139 <td>
140 <button type="button" ng-click="createNetwork();" att-button
141 btn-type="primary" size="small">Add</button>
142 </td>
143 <td>
144 <button type="button" ng-click="deleteNetwork();" att-button
145 btn-type="primary" size="small">Delete</button>
146 </td>
147 <td>
148 <button type="button" ng-click="showNetworkDetails();" att-button
149 btn-type="primary" size="small">Show Details</button>
150 </td>
151 </tr>
152 </table>
153</div>
154
155<!-- Temporary solution for footer overlapping the men after talking to EComp SDK developer on 06/16/2016 -->
156
157<br>
158<br>
159<br>
160<br>
161<br>
162<br>
163<br>
164<br>
165<br>
166<br>
167<br>
168<br>
169<br>
170<br>
171<br>
172