91d74dbbb41ee083bef7e5aacbbebd7b1dc25fad
[portal.git] / ecomp-portal-FE-common / client / app / views / widget-onboarding / widget-onboarding.tpl.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6   ===================================================================
7  
8   Unless otherwise specified, all software contained herein is licensed
9   under the Apache License, Version 2.0 (the "License");
10   you may not use this software except in compliance with the License.
11   You may obtain a copy of the License at
12  
13               http://www.apache.org/licenses/LICENSE-2.0
14  
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20  
21   Unless otherwise specified, all documentation contained herein is licensed
22   under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23   you may not use this documentation except in compliance with the License.
24   You may obtain a copy of the License at
25  
26               https://creativecommons.org/licenses/by/4.0/
27  
28   Unless required by applicable law or agreed to in writing, documentation
29   distributed under the License is distributed on an "AS IS" BASIS,
30   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31   See the License for the specific language governing permissions and
32   limitations under the License.
33  
34   ============LICENSE_END============================================
35  
36   ECOMP is a trademark and service mark of AT&T Intellectual Property.
37   -->
38 <div class="w-ecomp-main">
39         <div class="w-ecomp-main-container">
40                 <div class="widget-onboarding" id="page-content">
41                         <div id="title" class="w-ecomp-main-view-title">
42                                 <h1 class="heading-page">Widget Onboarding</h1>
43                         </div>
44                         <div class="widgets-table">
45                                 <div class="table-control">
46                                         <div class="c-ecomp-abs-select default">
47                                                 <div class="table-dropdown">
48                                                         <select id="dropdown1" name="dropdown1" b2b-dropdown
49                                                                 placeholder-text="All Applications"
50                                                                 ng-model="widgetOnboarding.filterByApp.value">
51                                                                 <option b2b-dropdown-list
52                                                                         option-repeat="d in widgetOnboarding.availableApps"
53                                                                         value="{{d.value}}">{{d.title}}</option>
54                                                         </select>
55                                                 </div>
56                                         </div>
57                                         <input class="table-search" type="text"
58                                                 id="widget-onboarding-table-search"
59                                                 placeholder="Search in entire table"
60                                                 data-ng-model="widgetOnboarding.searchString" /> 
61
62                                         <button id="widget-onboarding-button-add"
63                                                 class="btn btn-alt btn-small"
64                                                 ng-click="widgetOnboarding.openWidgetCatalogDetailsModal()">
65                                                 <i class="icon-people-userbookmark" aria-hidden="true"></i>&nbsp;Add
66                                                 Widget
67                                         </button>
68
69                                         <div id="widget-onboarding-communcation-message"
70                                                 ng-show="widgetOnboarding.isCommError">Failed to communicate
71                                                 with the widget microservice.</div>
72
73                                         <div ng-hide="widgetOnboarding.isCommError">
74                                                 <div b2b-table table-data="portalAdmin.portalAdminsTableData"
75                                                         ng-hide="widgetOnboarding.isLoadingTable"
76                                                         search-string="widgetOnboarding.searchString" class="b2b-table-div">
77                                                         <table>
78                                                                 <thead b2b-table-row type="header">
79                                                                         <tr>
80                                                                                 <th id="widgets-catalog-th-header-name"
81                                                                                         ng-repeat="header in widgetOnboarding.widgetsTableHeaders"
82                                                                                         b2b-table-header key="{{header.value}}"
83                                                                                         sortable="{{header.isSortable}}">{{header.name}}</th>
84                                                                                 <th id="widgets-catalog-th-header-url" b2b-table-header
85                                                                                         key="appName" sortable="false">Application</th>
86
87                                                                                 <th id="widgets-catalog-th-header-download" b2b-table-header
88                                                                                         sortable="false">Download</th>
89
90                                                                                 <th id="widgets-catalog-th-header-delete" b2b-table-header
91                                                                                         sortable="false">Delete</th>
92                                                                         </tr>
93                                                                 </thead>
94                                                                 <tbody b2b-table-row type="body" class="table-body"
95                                                                         row-repeat="rowData in widgetsList | filter:widgetOnboarding.filterByDropdownValue">
96                                                                         <tr>
97                                                                                 <td b2b-table-body
98                                                                                         ng-repeat="header in widgetOnboarding.widgetsTableHeaders"
99                                                                                         id="widgets-catalog-widget-name-{{rowData.id}}-body"
100                                                                                         ng-click="widgetOnboarding.openWidgetCatalogDetailsModal(rowData)">
101                                                                                         <div id="widgets-catalog-widget-name-{{rowData.id}}"
102                                                                                                 ng-bind="rowData[header.value]"></div>
103                                                                                 </td>
104
105                                                                                 <td b2b-table-body
106                                                                                         id="widget-catalog-widget-application-{{rowData.id}}-body"
107                                                                                         ng-click="widgetOnboarding.openWidgetCatalogDetailsModal(rowData)">
108                                                                                         <div ng-repeat="row in rowData.appContent">
109                                                                                                 <div id="widget-catalog-widget-application-{{rowData.id}}"
110                                                                                                         ng-bind="row"></div>
111                                                                                         </div>
112                                                                                 </td>
113
114                                                                                 <td b2b-table-body>
115                                                                                         <div id="widget-onboarding-div-download-widget-{{$index}}" class="icon-arrows-download"
116                                                                                                 ng-click="widgetOnboarding.downloadWidget(rowData)"></div>
117                                                                                 </td>
118
119                                                                                 <td b2b-table-body>
120                                                                                         <div id="widget-onboarding-div-delete-widget-{{$index}}" class="icon-misc-trash"
121                                                                                                 ng-click="widgetOnboarding.deleteWidget(rowData)"></div>
122                                                                                 </td>
123                                                                         </tr>
124                                                                 </tbody>
125                                                         </table>
126                                                 </div>
127                                         </div>
128                                 </div>
129                         </div>
130                 </div>
131         </div>
132 </div>
133 </div>