<script src="app/vid/external/multiselect/angular-bootstrap-multiselect.min.js"></script>\r
<script src="app/vid/external/upload-file/ng-file-upload.min.js"></script>\r
+<script src="app/vid/external/angular-feature-flags/featureFlags.min.js"></script>\r
+<script src="app/vid/external/angular-moment/moment.min.js"></script>\r
+<script src="app/vid/external/angular-moment/angular-moment.min.js"></script>\r
+<%@ page import="org.onap.vid.properties.Features"%>\r
+<%@ page import="org.onap.vid.properties.VidProperties" %>\r
+<%@ page import="org.onap.portalsdk.core.util.SystemProperties" %>\r
<div>\r
<h1 class="heading1">ONAP</h1>\r
<br>\r
The VID user can also search for, and display, existing service instances and direct the instantiation of \r
subsequent instance components.\r
<br><br>\r
+ <%\r
+ String contactUsUrl = SystemProperties.getProperty(VidProperties.HOMEPAGE_CONTACT_US_URL);\r
+ %>\r
\r
- <h1 class="heading1"><a href="mailto:portal@lists.onap.org" target="_top">Contact Us</a></h1>\r
- <a href="mailto:portal@lists.onap.org" target="_top">Please click here to contact us.</a>\r
- \r
+ <h1 class="heading1"><a href="<%=contactUsUrl%>" target="_top">Contact Us</a></h1>\r
+ <a href="<%=contactUsUrl%>" target="_top">Please click here to contact us.</a>\r
+ <%\r
+ if (Features.FLAG_ADD_MSO_TESTAPI_FIELD.isActive()) {\r
+\r
+ String displayTestApi = SystemProperties.getProperty(VidProperties.MSO_DISPLAY_TEST_API_ON_SCREEN);\r
+ String defaultTestApiValue = SystemProperties.getProperty(VidProperties.MSO_DEFAULT_TEST_API);\r
+\r
+ String selectionVisibility = Boolean.parseBoolean(displayTestApi) ? "inherit" : "hidden";\r
+ %>\r
+ <div style="visibility: <%=selectionVisibility%>" id="selectTestApiSection">\r
+ <br/><br/><br/>\r
+ <label>Test API for A-la-carte:</label>\r
+ <select style="width: 20ch" id="selectTestApi" onchange="sessionStorage.setItem('msoRequestParametersTestApiValue',this.value);">\r
+ <option value="VNF_API">VNF_API (old)</option>\r
+ <option value="GR_API">GR_API (new)</option>\r
+ </select>\r
+ </div>\r
+ <script type="text/javascript">\r
+ var selectedValue = sessionStorage.getItem('msoRequestParametersTestApiValue') || "<%=defaultTestApiValue%>";\r
+ var element = document.getElementById('selectTestApi');\r
+ if (element) {\r
+ element.value = selectedValue;\r
+ }\r
+ sessionStorage.setItem('msoRequestParametersTestApiValue', selectedValue);\r
+ </script>\r
+ <%\r
+ }\r
+ %>\r
<BR>\r
</div>\r
<br>\r