66 < h1 > {{ "Roles" | localize }}</ h1 >
77 </ div >
88 < div class ="col-6 text-right ">
9- < a href ="javascript:; "
10- class ="btn bg-blue "
11- (click) ="createRole() ">
9+ < a href ="javascript:; " class ="btn bg-blue " (click) ="createRole() ">
1210 < i class ="fa fa-plus-square "> </ i >
1311 {{ "Create" | localize }}
1412 </ a >
1513 </ div >
1614 </ div >
1715 </ div >
1816 </ section >
19- < section class ="content px-2 ">
17+ < section class ="content px-2 pb-5 ">
2018 < div class ="container-fluid ">
21- < div class ="card ">
19+ < div class ="card mb-0 table-wrapper ">
2220 < div class ="card-header ">
2321 < div class ="row ">
2422 < div class ="col-md-6 ">  </ div >
2523 < div class ="col-md-6 ">
2624 < div class ="input-group ">
2725 < div class ="input-group-prepend ">
28- < button type ="button "
29- class ="btn bg-blue "
30- (click) ="getDataPage(1) ">
26+ < button type ="button " class ="btn bg-blue " (click) ="list() ">
3127 < i class ="fas fa-search "> </ i >
3228 </ button >
3329 </ div >
34- < input type ="text "
30+ < input
31+ type ="text "
3532 class ="form-control "
3633 name ="keyword "
3734 [placeholder] ="'SearchWithThreeDot' | localize "
3835 [(ngModel)] ="keyword "
39- (keyup.enter) ="getDataPage(1) " />
40- </ div >
36+ (keyup.enter) ="list() "
37+ / >
4138 </ div >
4239 </ div >
4340 </ div >
44- < div class ="card-body ">
45- < div class ="table-responsive ">
46- < table class ="table table-striped table-bordered "
47- [busy] ="isTableLoading ">
48- < thead class ="bg-light ">
41+ </ div >
42+ < div class ="card-body ">
43+ < div class ="table-responsive ">
44+ <!--<Primeng-TurboTable-Start>-->
45+ < div
46+ class ="primeng-datatable-container table-striped table-bordered "
47+ >
48+ < p-table
49+ #dataTable
50+ sortMode ="multiple "
51+ (onLazyLoad) ="list($event) "
52+ [value] ="primengTableHelper.records "
53+ rows ="{{ primengTableHelper.defaultRecordsCountPerPage }} "
54+ [paginator] ="false "
55+ [lazy] ="true "
56+ [tableStyle] ="{ 'min-width': '50rem' } "
57+ >
58+ < ng-template pTemplate ="header ">
4959 < tr >
50- < th > {{ "RoleName" | localize }}</ th >
51- < th > {{ "DisplayName" | localize }}</ th >
52- < th style ="width: 200px; "> {{ "Actions" | localize }}</ th >
60+ < th style ="min-width: 150px " pSortableColumn ="name ">
61+ {{ "RoleName" | localize }}
62+ < p-sortIcon field ="name "> </ p-sortIcon >
63+ </ th >
64+ < th style ="min-width: 150px " pSortableColumn ="displayName ">
65+ {{ "DisplayName" | localize }}
66+ < p-sortIcon field ="displayName "> </ p-sortIcon >
67+ </ th >
68+ < th style ="min-width: 130px ">
69+ {{ "Actions" | localize }}
70+ </ th >
5371 </ tr >
54- </ thead >
55- < tbody >
56- @for (
57- role of roles
58- | paginate
59- : {
60- id: 'server',
61- itemsPerPage: pageSize,
62- currentPage: pageNumber,
63- totalItems: totalItems
64- }
65- ; track
66- role.id) {
72+ </ ng-template >
73+
74+ < ng-template pTemplate ="body " let-record ="$implicit ">
6775 < tr >
68- < td > {{ role.name }}</ td >
69- < td > {{ role.displayName }}</ td >
7076 < td >
71- < button type ="button "
77+ < span class ="p-column-title "> {{
78+ "RoleName" | localize
79+ }}</ span >
80+ < span >
81+ {{ record.name }}
82+ </ span >
83+ </ td >
84+ < td >
85+ < span class ="p-column-title "> {{
86+ "DisplayName" | localize
87+ }}</ span >
88+ < span >
89+ {{ record.displayName }}
90+ </ span >
91+ </ td >
92+ < td >
93+ < button
94+ type ="button "
7295 class ="btn btn-sm bg-secondary "
73- (click) ="editRole(role) ">
96+ (click) ="editRole(record) "
97+ >
7498 < i class ="fas fa-pencil-alt "> </ i >
7599 {{ "Edit" | localize }}
76100 </ button >
77- < button type ="button "
101+ < button
102+ type ="button "
78103 class ="btn btn-sm bg-danger mx-2 "
79- (click) ="delete(role) ">
104+ (click) ="delete(record) "
105+ >
80106 < i class ="fas fa-trash "> </ i >
81107 {{ "Delete" | localize }}
82108 </ button >
83109 </ td >
84110 </ tr >
85- }
86- </ tbody >
87- </ table >
111+ </ ng-template >
112+ </ p-table >
113+ < div
114+ class ="primeng-no-data "
115+ *ngIf ="primengTableHelper.totalRecordsCount == 0 "
116+ >
117+ {{ "NoData" | localize }}
118+ </ div >
119+ </ div >
120+ <!--<Primeng-TurboTable-End>-->
88121 </ div >
89122 </ div >
90- < div class ="card-footer table-card-footer bg-light border-top ">
91- < div class ="row ">
123+ < div class ="card-footer table-card-footer bg-white border-top ">
124+ < div class ="row d-flex justify-content-center align-items-center ">
92125 < div class ="col-sm-4 col-12 text-sm-left text-center ">
93- < button class ="btn btn-secondary "
94- (click) ="refresh() ">
126+ < button class ="btn btn-secondary " (click) ="refresh() ">
95127 < i class ="fas fa-redo-alt "> </ i >
96128 </ button >
97129 </ div >
98- < div class ="col-sm-4 col-12 text-center ">
99- < p class ="mb-0 my-2 ">
100- {{ "TotalRecordsCount" | localize: totalItems }}
101- </ p >
102- </ div >
103- < div class ="col-sm-4 col-12 ">
130+ < div class ="col-sm-8 col-12 ">
104131 < div class ="float-sm-right m-auto ">
105- < abp-pagination-controls id ="server "
106- (pageChange) ="getDataPage($event) ">
107- </ abp-pagination-controls >
132+ < div class ="primeng-paging-container ">
133+ < p-paginator
134+ [rows] ="primengTableHelper.defaultRecordsCountPerPage "
135+ #paginator
136+ (onPageChange) ="list($event) "
137+ [totalRecords] ="primengTableHelper.totalRecordsCount "
138+ [rowsPerPageOptions] ="
139+ primengTableHelper.predefinedRecordsCountPerPage
140+ "
141+ [showCurrentPageReport] ="true "
142+ [currentPageReportTemplate] ="
143+ 'TotalRecordsCount'
144+ | localize : primengTableHelper.totalRecordsCount
145+ "
146+ > </ p-paginator >
147+ </ div >
108148 </ div >
109149 </ div >
110150 </ div >
111151 </ div >
112152 </ div >
113153 </ div >
114154 </ section >
115- </ div >
155+ </ div >
0 commit comments