blob: d255174fff88fa44c54711064531acd1623f2824 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
<!--
================================================================================
eCOMP Portal
================================================================================
Copyright (C) 2017 AT&T Intellectual Property
================================================================================
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.
================================================================================
-->
<div class="w-ecomp-main">
<div class="w-ecomp-main-container">
<div class="widgets-page-main" id="contentId">
<div id="widget-onboarding-title" class="w-ecomp-main-view-title">Widget Onboarding</div>
<div class="widgets-table">
<div class="table-control">
<div class="c-ecomp-att-abs-select default">
<div class="form-field" id="widegets-available-apps"
att-select="widgets.availableApps"
ng-model="widgets.filterByApp"></div>
</div>
<input class="table-search" type="text" id="widget-onboarding-table-search"
placeholder="Search in entire table"
ng-model="widgets.searchString"/>
<div id="widget-onboarding-button-add" class="add-button" ng-click="widgets.openWidgetDetailsModal()">Add Widget</div>
</div>
<div class="error-text" ng-show="infoMessage">
<span class="error-help">Only widgets for active applications are displayed.</span>
<button type="button" class="close" ng-click="hideMe()">×</button>
</div>
<span class="ecomp-spinner" ng-show="widgets.isLoadingTable"></span>
<div class="c-ecomp-att-abs-table default" ng-hide="widgets.isLoadingTable">
<table att-table
table-data="widgets.widgetsList"
search-string="widgets.searchString"
view-per-page="widgets.viewPerPageIgnored"
current-page="widgets.currentPageIgnored"
total-page="widgets.totalPageIgnored">
<thead att-table-row type="header">
<tr>
<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>
<th id="widget-onboarding-th-header-url" att-table-header key="url" sortable="{{false}}">URL</th>
<th id="widget-onboarding-th-header-delete" att-table-header sortable="{{false}}">Delete</th>
</tr>
</thead>
<tbody att-table-row type="body"
class="table-body"
row-repeat="rowData in widgets.widgetsList | filter:widgets.filterByDropdownValue">
<tr >
<td att-table-body ng-repeat="header in widgets.widgetsTableHeaders" ng-click="widgets.openWidgetDetailsModal(rowData)">
<div id="widget-onboarding-div-{{rowData[header.value].split(' ').join('-')}}" ng-bind="rowData[header.value]"></div>
</td>
<td att-table-body ng-click="widgets.openWidgetDetailsModal(rowData)">
<div id="widget-onboarding-div-url-{{rowData[header.value].split(' ').join('-')}}" ng-bind="rowData.url | trusted"></div>
</td>
<td att-table-body>
<div id="widget-onboarding-div-delete-widget-{{$index}}" class="delete-widget" ng-click="widgets.deleteWidget(rowData)"><span class="ion-trash-b"></span></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
|