[PORTAL-7] Rebase
[portal.git] / ecomp-portal-FE-common / client / app / views / catalog / catalog.tpl.html
1 <!--\r
2   ================================================================================\r
3   ECOMP Portal\r
4   ================================================================================\r
5   Copyright (C) 2017 AT&T Intellectual Property\r
6   ================================================================================\r
7   Licensed under the Apache License, Version 2.0 (the "License");\r
8   you may not use this file except in compliance with the License.\r
9   You may obtain a copy of the License at\r
10   \r
11        http://www.apache.org/licenses/LICENSE-2.0\r
12   \r
13   Unless required by applicable law or agreed to in writing, software\r
14   distributed under the License is distributed on an "AS IS" BASIS,\r
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16   See the License for the specific language governing permissions and\r
17   limitations under the License.\r
18   ================================================================================\r
19   -->\r
20 <div class="w-ecomp-app-catalog">\r
21         <div class="app-catalog-container" id="page-content">\r
22                 <div id="title" class="w-ecomp-main-view-title">\r
23                         <h1 class="heading-page">Application Catalog</h1>\r
24                 </div>\r
25                 <div class="app-catalog-list">\r
26                         <div class="simulateCatGridHeader">\r
27                                 <span class="simulateCatGridHeaderDetails"> Click the check\r
28                                         boxes below to choose which applications are shown on the <a\r
29                                         href="applicationsHome">home page</a>.\r
30                                 </span> <br> <br> <label id="label-all"\r
31                                         class="simulateCatGridHeaderRadio"> Filter: <input\r
32                                         id="radio-button-all" type="radio" ng-model="radioValue"\r
33                                         value="All"> All\r
34                                 </label> <label id="label-accessible" class="simulateCatGridHeaderRadio">\r
35                                         <input id="radio-button-accessible" type="radio"\r
36                                         ng-model="radioValue" value="Accessible"> Accessible\r
37                                 </label> <label id="label-homepage" class="simulateCatGridHeaderRadio">\r
38                                         <input id="radio-button-homepage" type="radio"\r
39                                         ng-model="radioValue" value="Selected"> On Home Page\r
40                                 </label>\r
41 \r
42                         </div>\r
43                         <div class="appCatalogue-boarder" >\r
44                                 <div gridster="catalog.gridsterOpts">   \r
45                                         <ul>    \r
46                                                 <li gridster-item="item" ng-repeat="item in appCatalog"\r
47                                                         ng-if="(item.select && radioValue=='Selected') || (item.access && radioValue=='Accessible') || (radioValue == 'All')">\r
48                                                         <div class="gridster-box" style="{{!item.access?' color:lightgray !important':''}}">\r
49                                                                 <div class="gridster-box-header"\r
50                                                                         ng-show="(item.select && radioValue=='Selected') || (item.access && radioValue=='Accessible') || (radioValue == 'All')">\r
51                                                                         <i class="icon-content-gridguide"></i>\r
52                                                                         <h3 style="cursor: context-menu">{{item.headerText |\r
53                                                                                 elipsis: 13}}</h3>\r
54                                                                             <div class="form-row" ng-show="item.access || isAdminPortalAdmin">\r
55                                                                                 <label class="checkbox">\r
56                                                                                     <input type="checkbox" ng-model="item.select" ng-change="catalog.storeSelection(item)">\r
57                                                                                     <i class="skin"></i> \r
58                                                                                 </label> \r
59                                                                                 <i ng-show="item.pending" class="icon-tickets-contested"></i>                                                                                                                                                   \r
60                                                                         </div>\r
61                                                                 </div>\r
62                                                                 <div class="gridster-box-content"\r
63                                                                         ng-style="{'cursor':'pointer',\r
64                                                                                 'background-image': 'url('+(item.imageLink)+')',\r
65                                                                                 'order': item.order, \r
66                                                                                 'background-color':'white',\r
67                                                                                 'background-repeat': 'no-repeat',\r
68                                                                                 'background-size': '170px 130px'}"\r
69                                                                         ng-click="catalog.openAddRoleModal(item)"\r
70                                                                         ng-hide="users.isLoadingTable && !users.getAppCatalogIsDone"\r
71                                                                         >\r
72                                                                 </div>\r
73                                                         </div>\r
74                                                 </li>\r
75                                         </ul>\r
76                                 </div>\r
77                         </div>\r
78                         \r
79                         <br>\r
80 \r
81                         <div style="text-align: right;">\r
82                                 To request access to an application, please visit the <a\r
83                                         ng-href="getAccess">Get Access</a> page.\r
84                         </div>\r
85 \r
86                         <br>\r
87                 </div>\r
88 \r
89         </div>\r
90 </div>\r