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