Link DCAE MOD design tool to Acumos Adapter
[dcaegen2/platform.git] / mod / designtool / designtool-web / src / main / webapp / WEB-INF / partials / canvas / navigation.jsp
1 <%--
2  Licensed to the Apache Software Foundation (ASF) under one or more
3   contributor license agreements.  See the NOTICE file distributed with
4   this work for additional information regarding copyright ownership.
5   The ASF licenses this file to You under the Apache License, Version 2.0
6   (the "License"); you may not use this file except in compliance with
7   the License.  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   Modifications to the original nifi code for the ONAP project are made
18   available under the Apache License, Version 2.0
19 --%>
20 <%@ page contentType="text/html" pageEncoding="UTF-8" session="false" %>
21 <nf-breadcrumbs
22         breadcrumbs="appCtrl.serviceProvider.breadcrumbsCtrl.getBreadcrumbs();"
23         click-func="appCtrl.nf.CanvasUtils.getComponentByType('ProcessGroup').enterGroup"
24         highlight-crumb-id="appCtrl.nf.CanvasUtils.getGroupId();"
25         separator-func="appCtrl.nf.Common.isDefinedAndNotNull"
26         is-tracking="appCtrl.serviceProvider.breadcrumbsCtrl.isTracking"
27         get-version-control-class="appCtrl.serviceProvider.breadcrumbsCtrl.getVersionControlClass"
28         get-version-control-tooltip="appCtrl.serviceProvider.breadcrumbsCtrl.getVersionControlTooltip">
29 </nf-breadcrumbs>
30 <div id="graph-controls">
31     <div id="navigation-control" class="graph-control">
32         <div class="graph-control-docked pointer fa fa-compass" title="Navigate"
33              ng-click="appCtrl.serviceProvider.graphControlsCtrl.undock($event)">
34         </div>
35         <div class="graph-control-header-container hidden pointer"
36              ng-click="appCtrl.serviceProvider.graphControlsCtrl.expand($event)">
37             <div class="graph-control-header-icon fa fa-compass">
38             </div>
39             <div class="graph-control-header">Navigate</div>
40             <div class="graph-control-header-action">
41                 <div class="graph-control-expansion fa fa-plus-square-o pointer"></div>
42             </div>
43             <div class="clear"></div>
44         </div>
45         <div class="graph-control-content hidden">
46             <div id="navigation-buttons">
47                 <div id="naviagte-zoom-in" class="action-button" title="Zoom In"
48                      ng-click="appCtrl.serviceProvider.graphControlsCtrl.navigateCtrl.zoomIn();">
49                     <button><div class="graph-control-action-icon fa fa-search-plus"></div></button>
50                 </div>
51                 <div class="button-spacer-small">&nbsp;</div>
52                 <div id="naviagte-zoom-out" class="action-button" title="Zoom Out"
53                      ng-click="appCtrl.serviceProvider.graphControlsCtrl.navigateCtrl.zoomOut();">
54                     <button><div class="graph-control-action-icon fa fa-search-minus"></div></button>
55                 </div>
56                 <div class="button-spacer-large">&nbsp;</div>
57                 <div id="naviagte-zoom-fit" class="action-button" title="Fit"
58                      ng-click="appCtrl.serviceProvider.graphControlsCtrl.navigateCtrl.zoomFit();">
59                     <button><div class="graph-control-action-icon icon icon-zoom-fit"></div></button>
60                 </div>
61                 <div class="button-spacer-small">&nbsp;</div>
62                 <div id="naviagte-zoom-actual-size" class="action-button" title="Actual"
63                      ng-click="appCtrl.serviceProvider.graphControlsCtrl.navigateCtrl.zoomActualSize();">
64                     <button><div class="graph-control-action-icon icon icon-zoom-actual"></div></button>
65                 </div>
66                 <div class="clear"></div>
67             </div>
68             <div id="birdseye"></div>
69         </div>
70     </div>
71     <div id="operation-control" class="graph-control">
72         <div class="graph-control-docked pointer fa fa-hand-o-up" title="Operate"
73              ng-click="appCtrl.serviceProvider.graphControlsCtrl.undock($event)">
74         </div>
75         <div class="graph-control-header-container hidden pointer"
76              ng-click="appCtrl.serviceProvider.graphControlsCtrl.expand($event)">
77             <div class="graph-control-header-icon fa fa-hand-o-up">
78             </div>
79             <div class="graph-control-header">Operate</div>
80             <div class="graph-control-header-action">
81                 <div class="graph-control-expansion fa fa-plus-square-o pointer"></div>
82             </div>
83             <div class="clear"></div>
84         </div>
85         <div class="graph-control-content hidden">
86             <div id="operation-context">
87                 <div id="operation-context-logo">
88                     <i class="icon" ng-class="appCtrl.serviceProvider.graphControlsCtrl.getContextIcon()"></i>
89                 </div>
90                 <div id="operation-context-details-container">
91                     <div id="operation-context-name"><strong> {{appCtrl.serviceProvider.graphControlsCtrl.getContextName()}} </strong></div>
92                     <div id="operation-context-type" ng-class="appCtrl.serviceProvider.graphControlsCtrl.hide()">{{appCtrl.serviceProvider.graphControlsCtrl.getContextType()}}</div>
93                 </div>
94                 <div class="clear"></div>
95                 <div id="operation-context-id" ng-class="appCtrl.serviceProvider.graphControlsCtrl.hide()">{{appCtrl.serviceProvider.graphControlsCtrl.getContextId()}}</div>
96             </div>            <div id="operation-buttons">
97                 <div>
98
99                   <div id="operation-context-type">Distribute for deployment:</div>
100                   <br>
101                   <div>
102                     <select name="environment" id="environmentType" class="combo" onchange="onEnvironmentSelect()">
103                       <option class="combo-option-text" disabled selected>Select Environment</option>
104                     </select>
105                   </div>
106
107                     <br>
108                    <div class="button-spacer-large">&nbsp;</div>
109                    <div id="operate-refresh" class="action-button" title="Refresh Environments">
110                         <button id="refresh-env-btn" onclick="refreshEnvironments()" >
111                         <div class="graph-control-action-icon fa fa-refresh"></div><span></span></button>
112                     </div>
113                     <div class="button-spacer-large">&nbsp;</div>
114                     <div id="operate-delete" class="action-button" title="Delete">
115                         <button ng-click="appCtrl.nf.Actions['delete'](appCtrl.nf.CanvasUtils.getSelection());"
116                                 ng-disabled="!appCtrl.nf.CanvasUtils.areDeletable(appCtrl.nf.CanvasUtils.getSelection());">
117                             <div class="graph-control-action-icon fa fa-trash"></div><span></span></button>
118                     </div>
119                      <div class="button-spacer-large">&nbsp;</div>
120                      <div id="operate-submit" class="action-button" title="Submit">
121                             <button id="operate-submit-btn" onclick="distributeGraph()" >
122                              <div class="graph-control-action-icon fa fa-check"></div><span></span></button>
123                       </div>
124                       <div class="clear"></div>
125                 </div>
126             </div>
127         </div>
128     </div>
129 </div>
130 <div id="import-model" class="hidden medium-dialog import-group">
131   <div id="import-model-header-text" class="import-header-text">Import Model</div>
132   <div class="import-container">
133     <select id="model-type" onchange="setModelType()">
134       <option value="-" selected="true">-- Choose Model Type --</option>
135       <option value="mtAcumos">Acumos</option>
136     </select>
137     <div id="mt-acumos" class="hidden">
138       <hr/>
139       <label for="furl"><b>Acumos Federation URL</b></label> <input id="furl" type="text" name="furl" placeholder="https://server:9084" required/>
140       <button type="button" class="onap-action" onclick="lookupCatalogs()">Lookup</button>
141     </div>
142     <div id="c-acumos" class="hidden">
143       <hr/>
144       <label for="cat-menu"><b>Select Catalog</b></label> <select id="cat-menu" onchange="chooseCatalog()">
145         <option value="*">All Catalogs</option>
146       </select>
147     </div>
148     <div id="ac-sols" class="hidden">
149       <hr/>
150       <label for="sol-menu"><b>Select Solution</b></label> <select id="sol-menu" onchange="chooseSolution()">
151         <option value="*">All Solutions</option>
152       </select>
153     </div>
154     <div id="ac-revs" class="hidden">
155       <hr/>
156       <label for="rev-menu"><b>Select Revision</b></label> <select id="rev-menu">
157         <option value="*">All Revisions</option>
158       </select>
159     </div>
160     <hr/>
161     <button id="onboard" class="hidden onap-action" type="button" onclick="onBoard()">Onboard</button><br>
162     <b id="onboarding-in-progress" class="hidden">Onboarding - Please Wait ...</b>
163   </div>
164 </div>
165
166 <div id="import-component" class="hidden medium-dialog import-group">
167   <div id="import-component-header-text" class="import-header-text">Import Component Specification</div>
168   <div class="import-container">
169     <label for="cspec"><b>Component Specification File</b></label> <input id="cspec" type="file" name="file" placeholder="Component-Spec.json" accept=".json,application/json" required>
170     <br><button id="uploadComponent" type="button" class="onap-action" onclick="onBoardComponent()">Upload</button>
171   </div>
172 </div>
173 <div id="import-data-format" class="hidden medium-dialog import-group">
174   <div id="import-data-format-header-text" class="import-header-text">Import Data Format</div>
175   <div class="import-container">
176     <label for="dfspec"><b>Data Format File</b></label> <input id="dfspec" type="file" name="file" placeholder="Data-Format.json" accept=".json,application/json" required>
177     <br><button id="uploadDataFormat" type="button" class="onap-action" onclick="onBoardDataFormat()">Upload</button>
178   </div>
179 </div>