0e72a16899f96cdece37aa2d2cb69fb1cb6b625e
[portal.git] / ecomp-portal-FE-common / client / app / views / widgets / widgets.tpl.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright © 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="widgets-page-main" id="page-content">
41             <div id="widget-onboarding-title" class="w-ecomp-main-view-title">Widget Onboarding</div>
42             <div class="widgets-table">
43                 <div class="table-control">
44                         <div class="c-ecomp-portal-abs-select default">
45                             <div class="form-field" id="widegets-available-apps"
46                                  att-select="widgets.availableApps"
47                                  ng-model="widgets.filterByApp"></div>
48                         </div>
49                     <input class="table-search" type="text" id="widget-onboarding-table-search"
50                            placeholder="Search in entire table"
51                            ng-model="widgets.searchString"/>
52
53                     <div id="widget-onboarding-button-add" class="add-button" ng-click="widgets.openWidgetDetailsModal()">Add Widget</div>
54                 </div>
55                 <div class="error-text" ng-show="infoMessage">
56                     <span class="error-help">Only widgets for active applications are displayed.</span>
57                     <button type="button" class="close" ng-click="hideMe()">&times;</button>
58                 </div>
59                 <div class="error-text" ng-show="noWidgets">
60                     <span class="informational">There are currently no widgets available.</span>
61                 </div>
62
63                 <span class="ecomp-spinner" ng-show="widgets.isLoadingTable"></span>
64                 <div class="c-ecomp-portal-abs-table default" ng-hide="widgets.isLoadingTable">
65                     <table b2b-table
66                            table-data="widgets.widgetsList"
67                            search-string="widgets.searchString"
68                            view-per-page="widgets.viewPerPageIgnored"
69                            current-page="widgets.currentPageIgnored"
70                            total-page="widgets.totalPageIgnored">
71                         <thead b2b-table-row type="header">
72                         <tr>
73                             <th id="widget-onboarding-th-header-name" ng-repeat="header in widgets.widgetsTableHeaders" b2b-table-header key="{{header.value}}" sortable="{{header.isSortable}}">{{header.name}}</th>
74                             <th id="widget-onboarding-th-header-url" b2b-table-header  key="url" sortable="{{false}}">URL</th>
75                             <th id="widget-onboarding-th-header-delete" b2b-table-header  sortable="{{false}}">Delete</th>
76                         </tr>
77                         </thead>
78                         <tbody b2b-table-row type="body"
79                                class="table-body"
80                                row-repeat="rowData in widgets.widgetsList | filter:widgets.filterByDropdownValue">
81                         <tr >
82                             <td b2b-table-body ng-repeat="header in widgets.widgetsTableHeaders" ng-click="widgets.openWidgetDetailsModal(rowData)">
83                                 <div id="widget-onboarding-div-{{rowData[header.value].split(' ').join('-')}}" ng-bind="rowData[header.value]"></div>
84                             </td>
85                             <td b2b-table-body ng-click="widgets.openWidgetDetailsModal(rowData)">
86                                 <div id="widget-onboarding-div-url-{{rowData[header.value].split(' ').join('-')}}" ng-bind="rowData.url | trusted"></div>
87                             </td>
88                             <td b2b-table-body>
89                                 <div id="widget-onboarding-div-delete-widget-{{$index}}" class="delete-widget" ng-click="widgets.deleteWidget(rowData)"></div>
90                             </td>
91                         </tr>
92                         </tbody>
93                     </table>
94                 </div>
95             </div>
96         </div>
97     </div>
98
99 </div>