unblockuser.component.html
3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<div class="row">
<div class="col-sm-12 pageHeading">
<h4>Unblock User</h4>
</div>
<div>
<ng-template #template>
<div class="modal-header">
<h4 class="modal-title pull-left">Confirmation</h4>
<button type="button" class="close pull-right" aria-label="Close" (click)="modalRef.hide()">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Are you sure to unblock the selected user(s)?</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary btn-sm" (click)="UpdateUnBlockedUsers()">Yes</button>
<button type="button" class="btn btn-primary btn-sm" (click)="modalRef.hide()">No</button>
</div>
</ng-template>
</div>
<ng-template #templatesuccess>
<div class="modal-header">
<h4 class="modal-title pull-left">Confirmation</h4>
<button type="button" class="close pull-right" aria-label="Close" (click)="modalRef.hide()">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" [innerHTML]="modalAlerts">
</div>
<div class="modal-footer">
</div>
</ng-template>
<div class="col-sm-12">
<div class="container-fluid main-full">
<div class="row">
<div class="well marginBtm12" novalidate [formGroup]="UnBlockedUserFrm">
<!--first-table-->
<div class="table-responsive blue">
<table class="table table-condensed table-bordered margin-btm0 table-striped table-hover">
<thead>
<tr>
<th>Select</th>
<th>First Name</th>
<th>Last Name</th>
<th>User ID</th>
<th>Password</th>
<th>Email ID</th>
<th>Blocked Date</th>
<th>Account Number</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let UserEntity of UserList;let i = index">
<td>
<input type="checkbox" (change)="onChange(i, UserEntity.Id, $event.target.checked)">
</td>
<td>{{UserEntity.FirstName}}</td>
<td>{{UserEntity.LastName}}</td>
<td>{{UserEntity.LoginId}}</td>
<td>{{UserEntity.Password}}</td>
<td>{{UserEntity.EmailId}}</td>
<td>{{UserEntity.LoginTime| date: 'MM/dd/yyyy'}}</td>
<td>{{UserEntity.AccountNumber}}</td>
</tr>
</tbody>
</table>
</div>
<!--first-table-->
<div class="row">
<div class="col-sm-12 marginTop20 text-center">
<button class="btn btn-primary btn-sm" (click)="openModal(template)"><i class="fa fa-times-circle"></i> Unblock</button>
<button class="btn btn-primary btn-sm" (click)="redirect()"><i class="fa fa-close"></i> Cancel</button>
</div>
</div>
<!--tab-content-->
</div>
</div>
</div>
</div>
</div>