nexus site path corrected
[portal.git] / ecomp-portal-FE / client / app / views / widgets / widgets.tpl.html
1 <!--
2   ================================================================================
3   eCOMP Portal
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ================================================================================
19   -->
20 <div class="w-ecomp-main">
21     <div class="w-ecomp-main-container">
22         <div class="widgets-page-main" id="contentId">
23             <div id="widget-onboarding-title" class="w-ecomp-main-view-title">Widget Onboarding</div>
24             <div class="widgets-table">
25                 <div class="table-control">
26                         <div class="c-ecomp-att-abs-select default">
27                             <div class="form-field" id="widegets-available-apps"
28                                  att-select="widgets.availableApps"
29                                  ng-model="widgets.filterByApp"></div>
30                         </div>
31                     <input class="table-search" type="text" id="widget-onboarding-table-search"
32                            placeholder="Search in entire table"
33                            ng-model="widgets.searchString"/>
34
35                     <div id="widget-onboarding-button-add" class="add-button" ng-click="widgets.openWidgetDetailsModal()">Add Widget</div>
36                 </div>
37                 <div class="error-text" ng-show="infoMessage">
38                     <span class="error-help">Only widgets for active applications are displayed.</span>
39                     <button type="button" class="close" ng-click="hideMe()">&times;</button>
40                 </div>
41
42                 <span class="ecomp-spinner" ng-show="widgets.isLoadingTable"></span>
43                 <div class="c-ecomp-att-abs-table default" ng-hide="widgets.isLoadingTable">
44                     <table att-table
45                            table-data="widgets.widgetsList"
46                            search-string="widgets.searchString"
47                            view-per-page="widgets.viewPerPageIgnored"
48                            current-page="widgets.currentPageIgnored"
49                            total-page="widgets.totalPageIgnored">
50                         <thead att-table-row type="header">
51                         <tr>
52                             <th id="widget-onboarding-th-header-name" ng-repeat="header in widgets.widgetsTableHeaders" att-table-header key="{{header.value}}" sortable="{{header.isSortable}}">{{header.name}}</th>
53                             <th id="widget-onboarding-th-header-url" att-table-header  key="url" sortable="{{false}}">URL</th>
54                             <th id="widget-onboarding-th-header-delete" att-table-header  sortable="{{false}}">Delete</th>
55                         </tr>
56                         </thead>
57                         <tbody att-table-row type="body"
58                                class="table-body"
59                                row-repeat="rowData in widgets.widgetsList | filter:widgets.filterByDropdownValue">
60                         <tr >
61                             <td att-table-body ng-repeat="header in widgets.widgetsTableHeaders" ng-click="widgets.openWidgetDetailsModal(rowData)">
62                                 <div id="widget-onboarding-div-{{rowData[header.value].split(' ').join('-')}}" ng-bind="rowData[header.value]"></div>
63                             </td>
64                             <td att-table-body ng-click="widgets.openWidgetDetailsModal(rowData)">
65                                 <div id="widget-onboarding-div-url-{{rowData[header.value].split(' ').join('-')}}" ng-bind="rowData.url | trusted"></div>
66                             </td>
67                             <td att-table-body>
68                                 <div id="widget-onboarding-div-delete-widget-{{$index}}" class="delete-widget" ng-click="widgets.deleteWidget(rowData)"><span class="ion-trash-b"></span></div>
69                             </td>
70                         </tr>
71                         </tbody>
72                     </table>
73                 </div>
74             </div>
75         </div>
76     </div>
77 </div>