55 < h2 > {{ "Users" | localize }}</ h2 >
66 < ul class ="header-dropdown m-r--5 ">
77 < li >
8- < button
9- mat-icon-button
10- [matMenuTriggerFor] ="headerMenu "
11- class ="header-dropdown-mat-icon-button "
12- >
8+ < button mat-icon-button [matMenuTriggerFor] ="headerMenu " class ="header-dropdown-mat-icon-button ">
139 < mat-icon > more_vert</ mat-icon >
1410 </ button >
1511 < mat-menu #headerMenu ="matMenu ">
@@ -22,6 +18,26 @@ <h2>{{ "Users" | localize }}</h2>
2218 </ ul >
2319 </ div >
2420 < div class ="body table-responsive ">
21+ <!--query start-->
22+ < div class ="row clearfix ">
23+ < form >
24+ < mat-form-field >
25+ < input matInput [placeholder] ="l('Keyword') " [(ngModel)] ="keyword " name ="keyword ">
26+ </ mat-form-field >
27+
28+ < mat-form-field >
29+ < mat-select [placeholder] ="l('IsActive') " [(ngModel)] ="isActive " name ="isActive ">
30+ < mat-option value =""> {{ 'All' | localize }}</ mat-option >
31+ < mat-option value ="true "> {{ 'Yes' | localize }}</ mat-option >
32+ < mat-option value ="false "> {{ 'No' | localize }}</ mat-option >
33+ </ mat-select >
34+ </ mat-form-field >
35+
36+ < button mat-raised-button color ="primary " (click) ="getDataPage(1) "> {{ 'Search' | localize }}</ button >
37+
38+ </ form >
39+ </ div >
40+ <!--query end-->
2541 < table class ="table table-hover table-striped " [busy] ="isTableLoading ">
2642 < thead >
2743 < tr >
@@ -35,8 +51,7 @@ <h2>{{ "Users" | localize }}</h2>
3551 </ tr >
3652 </ thead >
3753 < tbody >
38- < tr
39- *ngFor ="
54+ < tr *ngFor ="
4055 let user of (users
4156 | paginate
4257 : {
@@ -45,24 +60,15 @@ <h2>{{ "Users" | localize }}</h2>
4560 currentPage: pageNumber,
4661 totalItems: totalItems
4762 })
48- "
49- >
63+ ">
5064 < td > {{ user.userName }}</ td >
5165 < td > {{ user.fullName }}</ td >
5266 < td > {{ user.emailAddress }}</ td >
5367 < td align ="center ">
54- < i
55- class ="material-icons "
56- *ngIf ="user.isActive "
57- style ="color:green; "
58- >
68+ < i class ="material-icons " *ngIf ="user.isActive " style ="color:green; ">
5969 check_box
6070 </ i >
61- < i
62- class ="material-icons "
63- *ngIf ="!user.isActive "
64- style ="color:red; "
65- >
71+ < i class ="material-icons " *ngIf ="!user.isActive " style ="color:red; ">
6672 indeterminate_check_box
6773 </ i >
6874 </ td >
@@ -84,22 +90,11 @@ <h2>{{ "Users" | localize }}</h2>
8490 </ tr >
8591 </ tbody >
8692 </ table >
87- < div
88- class ="abp-pagination-controls-wrapper "
89- *ngIf ="totalItems > pageSize "
90- >
91- < abp-pagination-controls
92- (pageChange) ="getDataPage($event) "
93- id ="server "
94- >
93+ < div class ="abp-pagination-controls-wrapper " *ngIf ="totalItems > pageSize ">
94+ < abp-pagination-controls (pageChange) ="getDataPage($event) " id ="server ">
9595 </ abp-pagination-controls >
9696 </ div >
97- < button
98- mat-mini-fab
99- color ="primary "
100- class ="pull-right "
101- (click) ="createUser() "
102- >
97+ < button mat-mini-fab color ="primary " class ="pull-right " (click) ="createUser() ">
10398 < mat-icon > add</ mat-icon >
10499 </ button >
105100 </ div >
0 commit comments