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============================================
37 <div class="container">
38 <div id="page-content">
39 <h1 class="heading-page" id="profileSearch">Profile Search</h1>
40 <div class="prifile-search-box">
42 <input matInput type="text" (keyup)="applyFilter($event.target.value)" placeholder="Search in entire table">
45 <table mat-table [dataSource]="dataSource" matSort>
46 <ng-container matColumnDef="User ID">
47 <th mat-header-cell *matHeaderCellDef id="heading1"> User ID</th>
48 <td mat-cell *matCellDef="let rowData"> {{rowData.id}} </td>
51 <ng-container matColumnDef="Last Name">
52 <th mat-header-cell *matHeaderCellDef id="heading2"> {{userHeaders[1]}} </th>
53 <td mat-cell *matCellDef="let rowData"> {{rowData.lastName}} </td>
56 <ng-container matColumnDef="First Name">
57 <th mat-header-cell *matHeaderCellDef id="heading3">{{userHeaders[2]}} </th>
58 <td mat-cell *matCellDef="let rowData"> {{rowData.firstName}}</td>
61 <ng-container matColumnDef="Email">
62 <th mat-header-cell *matHeaderCellDef id="heading4"> {{userHeaders[3]}} </th>
63 <td mat-cell *matCellDef="let rowData" > {{rowData.email}} </td>
66 <ng-container matColumnDef="OrgUserId">
67 <th mat-header-cell *matHeaderCellDef id="heading4"> {{userHeaders[4]}} </th>
68 <td mat-cell *matCellDef="let rowData" > {{rowData.orgUserId}} </td>
71 <ng-container matColumnDef="Manager OrgUserId">
72 <th mat-header-cell *matHeaderCellDef id="heading4"> {{userHeaders[5]}} </th>
73 <td mat-cell *matCellDef="let rowData" > {{rowData.orgManagerUserId}} </td>
76 <ng-container matColumnDef="Edit">
77 <th mat-header-cell *matHeaderCellDef id="heading5"> {{userHeaders[6]}} </th>
78 <td mat-cell *matCellDef="let rowData" >
79 <span class="icon-trash" id="{{i}}-button-role-edit">
80 <a href="/v2/userProfile/self_profile?profile_id={{rowData.id}}" class="icon-misc-pen"
81 style="font-size: 20px;"><i class="ion ion-md-create"></i></a>
86 <ng-container matColumnDef="Active?">
87 <th mat-header-cell *matHeaderCellDef id="heading6"> {{userHeaders[7]}} </th>
88 <td mat-cell *matCellDef="let rowData">
89 <mat-slide-toggle [(ngModel)]="rowData.active" (change)="toggleUserActive(rowData)"></mat-slide-toggle>
93 <tr mat-header-row *matHeaderRowDef="userHeaders"></tr>
94 <tr mat-row *matRowDef="let rowData; columns: userHeaders;">
96 <span class="ecomp-spinner" *ngIf="showSpinner"></span>
97 <mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>