[PORTAL-16 PORTAL-18] Widget ms; staging
[portal.git] / ecomp-portal-FE-common / client / app / views / widget-catalog / widget-catalog.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="widget-catalog" id="widget-page-content">
23                         <div id="title" class="w-ecomp-main-view-title">
24                                 <h1 class="heading-page">Widget Catalog</h1>
25                         </div>
26                         <div class="widget-centerAlignment">
27                                 <div class="portals-list">
28                                         <div ng-show="widgetCatalog.isCommError">Failed to
29                                                 communicate with the widget microservice.</div>
30                                         <div id="widgets" class="information-section"
31                                                 ng-hide="widgetCatalog.isCommError">
32                                                 <div id="news-gridster-container"
33                                                         class="gridster-container override_background">
34                                                         <div class="content" gridster="widgetCatalog.gridsterOpts">
35                                                                 <ul>
36                                                                         <li gridster-item="widget" ng-repeat="widget in widgetViewData">
37                                                                                 <div class="box">
38                                                                                         <div class="box-header">
39                                                                                                 <i style="cursor: move;" class="icon-content-gridguide"></i>
40                                                                                                 <h3>{{ widget.headerText}}</h3>
41                                                                                                 <div class="form-row">
42                                                                                                         <label id="widget-checkbox-label" class="checkbox"> <input type="checkbox"
43                                                                                                                 id="{{widget.headerText.split(' ').join('-')}}-checkbox"
44                                                                                                                 ng-model="widget.select"
45                                                                                                                 ng-change="storeSelection(widget)"> <i
46                                                                                                                 class="skin"></i>
47                                                                                                         </label>
48                                                                                                 </div>
49                                                                                         </div>
50                                                                                         <div class="box-content">
51                                                                                                 <div dyn-attr="widget.attrb"></div>
52                                                                                         </div>
53                                                                                 </div>
54                                                                         </li>
55                                                                 </ul>
56                                                         </div>
57                                                 </div>
58                                         </div>
59                                         <div ng-show="widgetCatalog.isEnlarged">
60                                                 <div id="widgets-button-enlarge-close"
61                                                         class="enlarge-close-button"
62                                                         ng-click="widgetCatalog.isEnlarged=false">X</div>
63                                                 <iframe id="iframe-widget-enlarge-close"
64                                                         ng-src="{{widgetCatalog.enlargeURL | trusted}}"
65                                                         class="enlarge-content"> </iframe>
66                                         </div>
67                                 </div>
68                         </div>
69
70                         <div id="widgets-disclaimer" class="w-ecomp-main-disclaimer">
71                                 To request access to an application widget, please visit the <a
72                                         ng-href="getAccess">Get Access</a> page.
73                         </div>
74                 </div>
75         </div>
76 </div>