1
1
< div class ="row clearfix " [@routerTransition] >
2
- < div class ="col-lg-12 col-md-12 col-sm-12 col-xs-12 ">
3
- < div class ="card main-content ">
4
- < div class ="header ">
5
- < h2 > {{ "Roles" | localize }}</ h2 >
6
- < ul class ="header-dropdown m-r--5 ">
7
- < li >
8
- < button mat-icon-button [matMenuTriggerFor] ="headerMenu " class ="header-dropdown-mat-icon-button ">
9
- < mat-icon > more_vert</ mat-icon >
10
- </ button >
11
- < mat-menu #headerMenu ="matMenu ">
12
- < button mat-menu-item (click) ="refresh() ">
13
- < mat-icon > refresh</ mat-icon >
14
- < span > {{ "Refresh" | localize }}</ span >
15
- </ button >
16
- </ mat-menu >
17
- </ li >
18
- </ ul >
19
- </ div >
20
- < div class ="body table-responsive ">
21
- <!--query start-->
22
- < div class ="row clearfix ">
23
- < form >
24
- < mat-form-field >
25
- < input matInput [placeholder] ="l('Filter') " [(ngModel)] ="keyword " name ="keyword ">
26
- </ mat-form-field >
2
+ < div class ="col-lg-12 col-md-12 col-sm-12 col-xs-12 ">
3
+ < div class ="card main-content ">
4
+ < div class ="header ">
5
+ < h2 > {{ "Roles" | localize }}</ h2 >
6
+ < ul class ="header-dropdown m-r--5 ">
7
+ < li >
8
+ < button mat-icon-button [matMenuTriggerFor] ="headerMenu " class ="header-dropdown-mat-icon-button ">
9
+ < mat-icon > more_vert</ mat-icon >
10
+ </ button >
11
+ < mat-menu #headerMenu ="matMenu ">
12
+ < button mat-menu-item (click) ="refresh() ">
13
+ < mat-icon > refresh</ mat-icon >
14
+ < span > {{ "Refresh" | localize }}</ span >
15
+ </ button >
16
+ </ mat-menu >
17
+ </ li >
18
+ </ ul >
19
+ </ div >
20
+ < div class ="body table-responsive ">
21
+ <!--query start-->
22
+ < div class ="row clearfix ">
23
+ < form >
24
+ < mat-form-field >
25
+ < input matInput [placeholder] ="l('Filter') " [(ngModel)] ="keyword " name ="keyword ">
26
+ </ mat-form-field >
27
27
28
- < button mat-raised-button color ="primary " (click) ="getDataPage(1) "> {{ 'Search' | localize }}</ button >
29
-
30
- </ form >
31
- </ div >
32
- <!--query end-->
33
- < table class ="table table-hover table-striped " [busy] ="isTableLoading ">
34
- < thead >
35
- < tr >
36
- < th > {{ "RoleName" | localize }}</ th >
37
- < th > {{ "DisplayName" | localize }}</ th >
38
- < th > {{ "Actions" | localize }}</ th >
39
- </ tr >
40
- </ thead >
41
- < tbody >
42
- < tr *ngFor ="
28
+ < div class ="row ">
29
+ < div class ="col-md-12 text-right p-r-25 ">
30
+ < button mat-raised-button color ="primary " (click) ="getDataPage(1) "> {{ 'Search' | localize }}</ button >
31
+ </ div >
32
+ </ div >
33
+ </ form >
34
+ </ div >
35
+ <!--query end-->
36
+ < table class ="table table-hover table-striped " [busy] ="isTableLoading ">
37
+ < thead >
38
+ < tr >
39
+ < th > {{ "RoleName" | localize }}</ th >
40
+ < th > {{ "DisplayName" | localize }}</ th >
41
+ < th > {{ "Actions" | localize }}</ th >
42
+ </ tr >
43
+ </ thead >
44
+ < tbody >
45
+ < tr *ngFor ="
43
46
let role of (roles
44
47
| paginate
45
48
: {
@@ -49,34 +52,34 @@ <h2>{{ "Roles" | localize }}</h2>
49
52
totalItems: totalItems
50
53
})
51
54
">
52
- < td > {{ role.name }}</ td >
53
- < td > {{ role.displayName }}</ td >
54
- < td >
55
- < button class ="action-button " mat-icon-button [matMenuTriggerFor] ="actionsMenu ">
56
- < mat-icon > menu</ mat-icon >
55
+ < td > {{ role.name }}</ td >
56
+ < td > {{ role.displayName }}</ td >
57
+ < td >
58
+ < button class ="action-button " mat-icon-button [matMenuTriggerFor] ="actionsMenu ">
59
+ < mat-icon > menu</ mat-icon >
60
+ </ button >
61
+ < mat-menu #actionsMenu ="matMenu ">
62
+ < button mat-menu-item (click) ="editRole(role) ">
63
+ < mat-icon > edit</ mat-icon >
64
+ < span > {{ "Edit" | localize }}</ span >
65
+ </ button >
66
+ < button mat-menu-item (click) ="delete(role) ">
67
+ < mat-icon > delete</ mat-icon >
68
+ < span > {{ "Delete" | localize }}</ span >
69
+ </ button >
70
+ </ mat-menu >
71
+ </ td >
72
+ </ tr >
73
+ </ tbody >
74
+ </ table >
75
+ < div class ="abp-pagination-controls-wrapper " *ngIf ="totalItems > pageSize ">
76
+ < abp-pagination-controls (pageChange) ="getDataPage($event) " id ="server ">
77
+ </ abp-pagination-controls >
78
+ </ div >
79
+ < button mat-mini-fab color ="primary " class ="pull-right " (click) ="createRole() ">
80
+ < mat-icon > add</ mat-icon >
57
81
</ button >
58
- < mat-menu #actionsMenu ="matMenu ">
59
- < button mat-menu-item (click) ="editRole(role) ">
60
- < mat-icon > edit</ mat-icon >
61
- < span > {{ "Edit" | localize }}</ span >
62
- </ button >
63
- < button mat-menu-item (click) ="delete(role) ">
64
- < mat-icon > delete</ mat-icon >
65
- < span > {{ "Delete" | localize }}</ span >
66
- </ button >
67
- </ mat-menu >
68
- </ td >
69
- </ tr >
70
- </ tbody >
71
- </ table >
72
- < div class ="abp-pagination-controls-wrapper " *ngIf ="totalItems > pageSize ">
73
- < abp-pagination-controls (pageChange) ="getDataPage($event) " id ="server ">
74
- </ abp-pagination-controls >
82
+ </ div >
75
83
</ div >
76
- < button mat-mini-fab color ="primary " class ="pull-right " (click) ="createRole() ">
77
- < mat-icon > add</ mat-icon >
78
- </ button >
79
- </ div >
80
84
</ div >
81
- </ div >
82
85
</ div >
0 commit comments