summaryrefslogtreecommitdiffstats
path: root/cvp/3rd_party/static/testapi-ui/components/directory
diff options
context:
space:
mode:
Diffstat (limited to 'cvp/3rd_party/static/testapi-ui/components/directory')
-rw-r--r--cvp/3rd_party/static/testapi-ui/components/directory/directory.html34
-rw-r--r--cvp/3rd_party/static/testapi-ui/components/directory/directoryController.js44
2 files changed, 78 insertions, 0 deletions
diff --git a/cvp/3rd_party/static/testapi-ui/components/directory/directory.html b/cvp/3rd_party/static/testapi-ui/components/directory/directory.html
new file mode 100644
index 00000000..d1383138
--- /dev/null
+++ b/cvp/3rd_party/static/testapi-ui/components/directory/directory.html
@@ -0,0 +1,34 @@
+<div class="container-fluid common-main-container">
+ <h3>OPNFV Verified Product Directory</h3>
+
+ <div>
+ <h4>Compliance Marks Granted to {{ctrl.companyID}}</h4>
+ <img class="" src="testapi-ui/assets/img/{{ctrl.company_logo}}" />
+ <table class="table table-striped table-hover">
+ <thead>
+ <tr class="">
+ <th>Product</th>
+ <th>Description</th>
+ <th>OVP Cateogry</th>
+ <th>OVP Version</th>
+ <th>Product Info</th>
+ <th>SUT Version</th>
+ <th>SUT HW Version</th>
+ </tr>
+ </thead>
+ <tbody class="directory_inner" style=" overflow: hidden; text-overflow: ellipsis;">
+ <tr style="vertical-align: center;" ng-repeat="prod in ctrl.directory" ng-if="prod.organization_name==ctrl.companyID && prod.approved=='true'">
+ <td width="250">{{ prod.product_name}}</td>
+ <td width="350">{{ prod.description}}</td>
+ <td width="150">{{ prod.ovp_category}}</td>
+ <td width="150">{{ prod.ovp_version}}</td>
+ <td><a href="{{ prod.product_documentation}}" target="_blank">{{ prod.product_documentation}}</a></td>
+ <td width="150">{{ prod.sut_version}}</td>
+ <td width="150">{{ prod.sut_hw_version}}</td>
+ </tr>
+ </tbody>
+ </table>
+
+ </div>
+
+</div>
diff --git a/cvp/3rd_party/static/testapi-ui/components/directory/directoryController.js b/cvp/3rd_party/static/testapi-ui/components/directory/directoryController.js
new file mode 100644
index 00000000..18fda09e
--- /dev/null
+++ b/cvp/3rd_party/static/testapi-ui/components/directory/directoryController.js
@@ -0,0 +1,44 @@
+/*
+ * 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.
+ */
+
+(function () {
+ 'use strict';
+
+ angular
+ .module('testapiApp')
+ .controller('DirectoryController', DirectoryController);
+
+ DirectoryController.$inject = ['$location', '$http', '$stateParams',
+ 'testapiApiUrl'
+ ];
+
+ /**
+ * This controller handles the directory page
+ */
+ function DirectoryController($location, $http, $stateParams, testapiApiUrl) {
+ var ctrl = this;
+
+ ctrl.companyID = $stateParams.companyID;
+ ctrl.company_logo = $stateParams.logo;
+ getDirectory();
+
+ function getDirectory(){
+ $http.get(testapiApiUrl + "/cvp/applications").then(function(response){
+ ctrl.directory = response.data.applications;
+ }, function(error){
+ });
+ }
+
+ }
+})();