Modify html label to support multi-language
[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   
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'|T}}</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 Widget'|T}}
66                                         </button>
67
68                                         <div id="widget-onboarding-communcation-message"
69                                                 ng-show="widgetOnboarding.isCommError">Failed to communicate
70                                                 with the widget microservice.</div>
71
72                                         <div ng-hide="widgetOnboarding.isCommError">
73                                                 <div b2b-table table-data="portalAdmin.portalAdminsTableData"
74                                                         ng-hide="widgetOnboarding.isLoadingTable"
75                                                         search-string="widgetOnboarding.searchString" class="b2b-table-div">
76                                                         <table>
77                                                                 <thead b2b-table-row type="header">
78                                                                         <tr>
79                                                                                 <th id="widgets-catalog-th-header-name"
80                                                                                         ng-repeat="header in widgetOnboarding.widgetsTableHeaders"
81                                                                                         b2b-table-header key="{{header.value}}"
82                                                                                         sortable="{{header.isSortable}}">{{header.name}}</th>
83                                                                                 <th id="widgets-catalog-th-header-url" b2b-table-header
84                                                                                         key="appName" sortable="false">Application</th>
85
86                                                                                 <th id="widgets-catalog-th-header-download" b2b-table-header
87                                                                                         sortable="false">Download</th>
88
89                                                                                 <th id="widgets-catalog-th-header-delete" b2b-table-header
90                                                                                         sortable="false">Delete</th>
91                                                                         </tr>
92                                                                 </thead>
93                                                                 <tbody b2b-table-row type="body" class="table-body"
94                                                                         row-repeat="rowData in widgetsList | filter:widgetOnboarding.filterByDropdownValue">
95                                                                         <tr>
96                                                                                 <td b2b-table-body
97                                                                                         ng-repeat="header in widgetOnboarding.widgetsTableHeaders"
98                                                                                         id="widgets-catalog-widget-name-{{rowData.id}}-body"
99                                                                                         ng-click="widgetOnboarding.openWidgetCatalogDetailsModal(rowData)">
100                                                                                         <div id="widgets-catalog-widget-name-{{rowData.id}}"
101                                                                                                 ng-bind="rowData[header.value]"></div>
102                                                                                 </td>
103
104                                                                                 <td b2b-table-body
105                                                                                         id="widget-catalog-widget-application-{{rowData.id}}-body"
106                                                                                         ng-click="widgetOnboarding.openWidgetCatalogDetailsModal(rowData)">
107                                                                                         <div ng-repeat="row in rowData.appContent">
108                                                                                                 <div id="widget-catalog-widget-application-{{rowData.id}}"
109                                                                                                         ng-bind="row"></div>
110                                                                                         </div>
111                                                                                 </td>
112
113                                                                                 <td b2b-table-body>
114                                                                                         <div id="widget-onboarding-div-download-widget-{{$index}}" class="icon-arrows-download"
115                                                                                                 ng-click="widgetOnboarding.downloadWidget(rowData)"></div>
116                                                                                 </td>
117
118                                                                                 <td b2b-table-body>
119                                                                                         <div id="widget-onboarding-div-delete-widget-{{$index}}" class="icon-misc-trash"
120                                                                                                 ng-click="widgetOnboarding.deleteWidget(rowData)"></div>
121                                                                                 </td>
122                                                                         </tr>
123                                                                 </tbody>
124                                                         </table>
125                                                 </div>
126                                         </div>
127                                 </div>
128                         </div>
129                 </div>
130         </div>
131 </div>
132 </div>