2 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 ===================================================================
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
13 http://www.apache.org/licenses/LICENSE-2.0
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.
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
26 https://creativecommons.org/licenses/by/4.0/
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.
34 ============LICENSE_END============================================
39 <div class="container" *ngIf="dialogState===1">
40 <div class="modal-header">
41 <h4 class="modal-title">{{title}}</h4>
42 <button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross')">
43 <span aria-hidden="true">×</span>
46 <div class="modal-body">
47 <app-search-users [searchTitle]="searchTitleText" [placeHolder]="placeholderText" (passBackSelectedUser)='changeSelectedUser($event)'></app-search-users>
48 <span class="onap-spinner" *ngIf="isLoading"></span>
50 <div class="modal-footer">
51 <button type="submit" class="btn btn-primary" [disabled]='!changedSelectedUser'
52 (click)="getAdminAppsRoles()">Next</button>
53 <button type="button" class="btn btn-primary" (click)="activeModal.close('Close')">Close</button>
56 <div class="container" *ngIf="dialogState===2">
57 <div class="modal-header">
58 <h4 class="modal-title">{{userTitle}}</h4>
59 <button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross')">
60 <span aria-hidden="true">×</span>
63 <div class="modal-body adminApps">
64 <div ngbDropdown class="d-inline-block">
65 <h4>Administrates:</h4>
66 <button class="btn btn-outline-primary" id="dropdownBasic1" ngbDropdownToggle>Select Application</button>
67 <div ngbDropdownMenu aria-labelledby="dropdownBasic1">
68 <button *ngFor="let app of adminDropdownApps" (click)="updateDropdown(app, true)"
69 ngbDropdownItem>{{app.appName}}</button>
72 <!-- User admins list -->
73 <div class="container adminApps" *ngIf="adminAppsRoles.length > 0">
74 <table mat-table [dataSource]="adminsAppsSource">
75 <!-- Search Result Column-->
76 <ng-container matColumnDef="applications">
77 <th id="rowheader-result" mat-header-cell *matHeaderCellDef> Applications <span id="i-delete-application"
78 class="span-remove-title"> Delete </span></th>
79 <td id="table-data-{{i}}" mat-cell *matCellDef="let element; let i = index;">
80 {{element.appName}} <span id="i-delete-application" class="span-remove-admin"
81 (click)="removeAdminApp(element)"><i class="icon ion-md-trash"></i></span>
84 <tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
85 <tr mat-row id="table-row-{{i}}" *matRowDef="let row; columns: displayedColumns; let i = index;"></tr>
89 <div class="modal-footer">
90 <button [hidden]="disableBack" type="submit" class="btn btn-primary" [disabled]='!changedSelectedUser'
91 (click)="navigateBack()">Back</button>
92 <button type="submit" class="btn btn-primary" [disabled]='!newAppSelected'
93 (click)="updateAdminAppsRoles(adminAppsScreen)">Save</button>
94 <button type="button" class="btn btn-primary" (click)="activeModal.close('Close')">Close</button>