Merge "InvalidRoleException-junits"
[portal.git] / portal-FE-common / src / app / pages / application-catalog / application-catalog.component.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright (C) 2019 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>
39   <div id="page-content">
40     <div id="title">
41       <h1>{{'Application Catalog'}}</h1>
42     </div>
43     <div>
44       <div>
45         <div id="container" class="simulateCatGridHeader">
46           <span class="simulateCatGridHeaderDetails"> Click the check
47             boxes below to choose which applications are shown on the <a [routerLink]="['/applicationsHome']">home
48               page</a>.
49           </span> <br> <br>
50           <div>
51             <div class="catalog-radio-div">
52               <label class="radio">
53                 <span>{{'Filter'}}: </span>
54               </label>
55             </div>
56             <div class="catalog-radio-div">
57               <label class="radio">
58                 <input type="radio" [(ngModel)]="radioValue" id="radio-button-all" name="All" value="All">
59                 <i class="skin"></i>
60                 <span>{{'All'}}</span>
61               </label>
62             </div>
63             <div class="catalog-radio-div">
64               <label class="radio">
65                 <input type="radio" [(ngModel)]="radioValue" id="radio-button-accessible" name="Accessible"
66                   value="Accessible">
67                 <i class="skin"></i>
68                 <span>{{'Accessible'}}</span>
69               </label>
70             </div>
71             <div class="catalog-radio-div">
72               <label class="radio">
73                 <input type="radio" [(ngModel)]="radioValue" id="radio-button-homepage" name="Selected"
74                   value="Selected">
75                 <i class="skin"></i>
76                 <span>{{'On Home Page'}}</span>
77               </label>
78             </div>
79
80           </div>
81         </div>
82         <div>
83           <div>
84             <gridster [options]="options" class="appCatalogue-boarder">
85
86
87               <div *ngFor="let item of layout">
88               <gridster-item [item]="item" *ngIf="(item.select && radioValue=='Selected') || (item.access && radioValue=='Accessible') || (radioValue == 'All')">
89                 <div class="gridster-box" [ngStyle]="{'color': !item.access ? 'lightgray':''}">
90                   <div class="gridster-box-header">
91
92                     <mat-icon class="icon-content-gridguide">drag_handle</mat-icon>
93                     <h3>{{ item.name | elipsis: 13}}</h3>
94                     <span style="position: absolute;right:1em" *ngIf="item.access || isUserSuperAdmin">
95                       <label id="widget-checkbox-label" class="checkbox">
96
97                         <input type="checkbox" id="{{item.name.split(' ').join('-')}}-checkbox"
98                           [(ngModel)]="item.select" (ngModelChange)="storeSelection(item)" />
99
100
101                         <i class="skin"></i>
102                       </label>
103                     </span>
104
105
106                   </div>
107                   <div class="gridster-box-content" [ngStyle]="{'cursor':'pointer',
108                                                                                 'background-image': 'url('+(item.imageLink)+')',
109                                                                                 'order': item.order, 
110                                                                                 'background-color':'white',
111                                                                                 'background-repeat': 'no-repeat',
112                     'background-size': '168px 118px',
113                      'height': '80%'}" (click)="openAddRoleModal(item)">
114                   </div>
115
116                 </div>
117               </gridster-item>
118             </div>
119
120
121
122             </gridster>
123           </div>
124         </div>
125
126       </div>
127
128       <div id="widgets-disclaimer" class="w-ecomp-main-disclaimer">
129         To request access to an application widget, please visit the <a>Get Access</a> page.
130       </div>
131     </div>
132   </div>
133 </div>
134
135 <div>
136   <div>
137
138   </div>
139   <div>
140     <div></div>
141     <div></div>
142   </div>
143 </div>