Feature 10941: User Management Enhancements
[osm/NG-UI.git] / src / app / users / user-details / UserDetailsComponent.html
1 <!--
2 Copyright 2020 TATA ELXSI
3
4 Licensed under the Apache License, Version 2.0 (the 'License');
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17 -->
18 <div class="row d-flex flex-row justify-content-between">
19 <div class="d-flex align-items-center header-style">{{'PAGE.DASHBOARD.USERS' | translate}}</div>
20 <span class="button">
21 <button class="btn btn-primary" type="button" (click)="composeUser()" placement="top" container="body"
22 ngbTooltip="{{'PAGE.USERS.CREATEUSER' | translate}}">
23 <i class="fas fa-plus-circle" aria-hidden="true"></i>
24 {{'PAGE.USERS.CREATEUSER' | translate}}
25 </button>
26 </span>
27 </div>
28 <div class="row mt-2 mb-0 form-group justify-content-end list-utilites-actions">
29 <div *ngIf="isAdminShow" class="col-auto mr-auto">
30 <nav class="custom-items-config">
31 <span><i class="fas fa-user-check text-success"></i>{{userActive}}</span>
32 <span><i class="fas fa-user-lock text-danger"></i>{{userLocked}}</span>
33 <span><i class="fas fa-user-times text-warning"></i>{{userExpired}}</span>
34 <span><i class="fas fa-user-shield text-info"></i>{{userAlwaysActive}}</span>
35 </nav>
36 </div>
37 <page-per-row class="mr-2" (pagePerRow)="onChange($event)"></page-per-row>
38 <page-reload></page-reload>
39 </div>
40 <div class="smarttable-style bg-white mt-1">
41 <ng2-smart-table [ngClass]="checkDataClass" [settings]="settings" [source]="dataSource" (userRowSelect)="onUserRowSelect($event)">
42 </ng2-smart-table>
43 </div>
44 <app-loader [waitingMessage]="message" *ngIf="isLoadingResults"></app-loader>