f6f0eac5b722c27941a8fdf57ee592598546cb25
[portal.git] / ecomp-portal-FE-common / client / app / views / catalog / catalog.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   ECOMP is a trademark and service mark of AT&T Intellectual Property.
37   -->
38 <div class="w-ecomp-app-catalog">
39         <div class="app-catalog-container" id="page-content">
40                 <div id="title" class="w-ecomp-main-view-title">
41                         <h1 class="heading-page">Application Catalog</h1>
42                 </div>
43                 <div class="app-catalog-list">
44                         <div class="simulateCatGridHeader"> 
45                                 <span class="simulateCatGridHeaderDetails"> Click the check 
46                                         boxes below to choose which applications are shown on the <a 
47                                         href="applicationsHome">home page</a>. 
48                                 </span> <br> <br> 
49                                 <div class="catalog-radio-div"> 
50                                         <label for="radio-button-all" class="radio"> 
51                                                 <span>Filter: </span> 
52                                         </label> 
53                                 </div> 
54                                 <div class="catalog-radio-div"> 
55                                         <label for="radio-button-all" class="radio"> 
56                                 <input type="radio" ng-model="radioValue" id="radio-button-all" name="All" value="All" > 
57                                 <i class="skin"></i> 
58                                 <span>All</span> 
59                             </label> 
60                                 </div> 
61                                 <div class="catalog-radio-div"> 
62                             <label for="radio-button-accessible" class="radio"> 
63                                 <input type="radio" ng-model="radioValue" id="radio-button-accessible" name="Accessible" value="Accessible" > 
64                                 <i class="skin"></i> 
65                                 <span>Accessible</span> 
66                             </label> 
67                     </div> 
68                     <div class="catalog-radio-div"> 
69                             <label for="radio-button-homepage" class="radio"> 
70                                 <input type="radio" ng-model="radioValue" id="radio-button-homepage" name="Selected" value="Selected"> 
71                                 <i class="skin"></i> 
72                                 <span>On Home Page</span> 
73                             </label> 
74                                 </div> 
75                         </div>
76                         <div class="appCatalogue-boarder" >
77                                 <div gridster="catalog.gridsterOpts">   
78                                         <ul>    
79                                                 <li gridster-item="item" ng-repeat="item in appCatalog"
80                                                         ng-if="(item.select && radioValue=='Selected') || (item.access && radioValue=='Accessible') || (radioValue == 'All')">
81                                                         <div class="gridster-box" ng-attr-style="{{!item.access?' color:lightgray !important':''}}">
82                                                                 <div class="gridster-box-header"
83                                                                         ng-show="(item.select && radioValue=='Selected') || (item.access && radioValue=='Accessible') || (radioValue == 'All')">
84                                                                         <i id="gridster-{{item.headerText.split(' ').join('-')}}-icon" class="icon-content-gridguide"></i>
85                                                                         <h3 style="cursor: context-menu">{{item.headerText |
86                                                                                 elipsis: 13}}</h3>
87                                                                             <div class="form-row" ng-show="item.access || isAdminPortalAdmin">
88                                                                                 <label class="checkbox">
89                                                                                     <input id="gridster-{{item.headerText.split(' ').join('-')}}-icon-checkbox" type="checkbox" ng-model="item.select" ng-change="catalog.storeSelection(item)">
90                                                                                     <i id="gridster-{{item.headerText.split(' ').join('-')}}-icon-checkbox" class="skin"></i> 
91                                                                                 </label> 
92                                                                                 <i ng-show="item.pending" class="icon-tickets-contested"></i>                                                                                                                                                   
93                                                                         </div>
94                                                                 </div>
95                                                                 <div class="gridster-box-content"
96                                                                         ng-style="{'cursor':'pointer',
97                                                                                 'background-image': 'url('+(item.imageLink)+')',
98                                                                                 'order': item.order, 
99                                                                                 'background-color':'white',
100                                                                                 'background-repeat': 'no-repeat',
101                                                                                 'background-size': '168px 118px'}"
102                                                                         ng-click="catalog.openAddRoleModal(item)"
103                                                                         ng-hide="users.isLoadingTable && !users.getAppCatalogIsDone">
104                                                                 </div>
105                                                         </div>
106                                                 </li>
107                                         </ul>
108                                 </div>
109                         </div>
110                         
111                         <br>
112
113                         <div class="access-request-txt">
114                                 To request access to an application, please visit the <a
115                                         id="get-access-page-link" ng-href="getAccess">Get Access</a> page.
116                         </div>
117
118                         <br>
119                 </div>
120
121         </div>
122 </div>