1
1
< div class ="container-fluid pt-5 ">
2
- < mat-spinner class ="ml-auto mr-auto " *ngIf ="loading " color =""> </ mat-spinner >
3
- < div *ngIf ="!loading " class ="card shadow-sm ">
2
+ < div class ="card shadow-sm ">
4
3
< div class ="card-body p-3 p-lg-5 ">
5
4
< h4 class ="card-title ">
6
5
{{'MENU.ALL_FACILITIES' | translate}}
@@ -9,44 +8,87 @@ <h4 class="card-title">
9
8
< mat-icon matPrefix class ="mr-1 "> search</ mat-icon >
10
9
< input matInput type ="text " (keyup) ="doFilter($event.target.value) " placeholder ="{{ 'SEARCH' | translate}} ">
11
10
</ mat-form-field >
12
- < table mat-table matSort matSortActive ="facilityId " matSortDirection ="desc " matSortDisableClear [dataSource] ="dataSource "
13
- class ="w-100 ">
14
- < ng-container matColumnDef ="facilityId ">
15
- < th mat-header-cell *matHeaderCellDef class ="w-10 " mat-sort-header > {{'COMMON.ID' | translate}}</ th >
16
- < td mat-cell *matCellDef ="let providedService "> {{providedService.facilityId}}</ td >
17
- </ ng-container >
18
- < ng-container matColumnDef ="name ">
19
- < th mat-header-cell *matHeaderCellDef class ="w-20 " mat-sort-header > {{'FACILITIES.NAME' | translate}}</ th >
20
- < td mat-cell *matCellDef ="let providedService "> {{providedService.name | itemLocale}}</ td >
21
- </ ng-container >
22
- < ng-container matColumnDef ="description ">
23
- < th mat-header-cell *matHeaderCellDef class ="w-25 " mat-sort-header > {{'FACILITIES.DESCRIPTION' | translate}}</ th >
24
- < td mat-cell *matCellDef ="let providedService "> {{providedService.description | itemLocale}}</ td >
25
- </ ng-container >
26
- < ng-container matColumnDef ="identifier ">
27
- < th mat-header-cell *matHeaderCellDef class ="w-25 " mat-sort-header > {{'FACILITIES.IDENTIFIER' | translate}}</ th >
28
- < td mat-cell *matCellDef ="let providedService "> {{providedService.identifier}}</ td >
29
- </ ng-container >
30
- < ng-container matColumnDef ="environment ">
31
- < th mat-header-cell *matHeaderCellDef class ="w-10 " mat-sort-header > {{'FACILITIES.ENVIRONMENT' | translate}}</ th >
32
- < td mat-cell *matCellDef ="let providedService "> {{providedService.environment | facilityEnvironment}}</ td >
33
- </ ng-container >
34
- < ng-container matColumnDef ="protocol ">
35
- < th mat-header-cell *matHeaderCellDef class ="w-10 " mat-sort-header > {{'FACILITIES.PROTOCOL' | translate}}</ th >
36
- < td mat-cell *matCellDef ="let providedService "> {{providedService.protocol }}</ td >
37
- </ ng-container >
38
- < ng-container matColumnDef ="deleted ">
39
- < th mat-header-cell *matHeaderCellDef class ="w-3 "> </ th >
40
- < td mat-cell *matCellDef ="let providedService ">
41
- < mat-icon *ngIf ="providedService.facilityDeleted " color ="warn "> delete</ mat-icon >
42
- </ td >
43
- </ ng-container >
44
- < tr mat-header-row *matHeaderRowDef ="displayedColumns; sticky: true "> </ tr >
45
- < tr mat-row *matRowDef ="let row; columns: displayedColumns; " [routerLink] ="['/auth/facilities/detail', row.facilityId] "
46
- class ="hover-dark clickable ">
47
- </ tr >
48
- </ table >
49
- < mat-paginator [pageSizeOptions] ="[10, 25, 50] " showFirstLastButtons > </ mat-paginator >
11
+ < div >
12
+ < div *ngIf ="isLoadingTable1 " style ="display: flex; justify-content: center; align-items: center; background: white; ">
13
+ < mat-progress-spinner color ="primary " mode ="indeterminate "> </ mat-progress-spinner >
14
+ </ div >
15
+ < table *ngIf ="!isLoadingTable1 " mat-table matSort #sort1 ="matSort " matSortActive ="facilityId " matSortDirection ="desc "
16
+ matSortDisableClear [dataSource] ="servicesDataSource " class ="w-100 ">
17
+ < ng-container matColumnDef ="facilityId ">
18
+ < th mat-header-cell *matHeaderCellDef class ="w-10 " mat-sort-header > {{'COMMON.ID' | translate}}</ th >
19
+ < td mat-cell *matCellDef ="let providedService "> {{providedService.facilityId}}</ td >
20
+ </ ng-container >
21
+ < ng-container matColumnDef ="name ">
22
+ < th mat-header-cell *matHeaderCellDef class ="w-20 " mat-sort-header > {{'FACILITIES.NAME' | translate}}</ th >
23
+ < td mat-cell *matCellDef ="let providedService "> {{providedService.name | itemLocale}}</ td >
24
+ </ ng-container >
25
+ < ng-container matColumnDef ="description ">
26
+ < th mat-header-cell *matHeaderCellDef class ="w-25 " mat-sort-header > {{'FACILITIES.DESCRIPTION' | translate}}</ th >
27
+ < td mat-cell *matCellDef ="let providedService "> {{providedService.description | itemLocale}}</ td >
28
+ </ ng-container >
29
+ < ng-container matColumnDef ="identifier ">
30
+ < th mat-header-cell *matHeaderCellDef class ="w-25 " mat-sort-header > {{'FACILITIES.IDENTIFIER' | translate}}</ th >
31
+ < td mat-cell *matCellDef ="let providedService "> {{providedService.identifier}}</ td >
32
+ </ ng-container >
33
+ < ng-container matColumnDef ="environment ">
34
+ < th mat-header-cell *matHeaderCellDef class ="w-10 " mat-sort-header > {{'FACILITIES.ENVIRONMENT' | translate}}</ th >
35
+ < td mat-cell *matCellDef ="let providedService "> {{providedService.environment | facilityEnvironment}}</ td >
36
+ </ ng-container >
37
+ < ng-container matColumnDef ="protocol ">
38
+ < th mat-header-cell *matHeaderCellDef class ="w-10 " mat-sort-header > {{'FACILITIES.PROTOCOL' | translate}}</ th >
39
+ < td mat-cell *matCellDef ="let providedService "> {{providedService.protocol }}</ td >
40
+ </ ng-container >
41
+ < ng-container matColumnDef ="deleted ">
42
+ < th mat-header-cell *matHeaderCellDef class ="w-3 "> </ th >
43
+ < td mat-cell *matCellDef ="let providedService ">
44
+ < mat-icon *ngIf ="providedService.facilityDeleted " color ="warn "> delete</ mat-icon >
45
+ </ td >
46
+ </ ng-container >
47
+ < tr mat-header-row *matHeaderRowDef ="displayedColumns; sticky: true "> </ tr >
48
+ < tr mat-row *matRowDef ="let row; columns: displayedColumns; " [routerLink] ="['/auth/facilities/detail', row.facilityId] "
49
+ class ="hover-dark clickable ">
50
+ </ tr >
51
+ </ table >
52
+ < mat-paginator #paginator1 [pageSizeOptions] ="[10, 25, 50] " showFirstLastButtons > </ mat-paginator >
53
+ </ div >
54
+
55
+ < div *ngIf ="externalServicesEnabled ">
56
+ < h5 > {{ 'FACILITIES.EXTERNAL' | translate}}</ h5 >
57
+ < div *ngIf ="isLoadingTable2 " style ="display: flex; justify-content: center; align-items: center; background: white; ">
58
+ < mat-progress-spinner color ="primary " mode ="indeterminate "> </ mat-progress-spinner >
59
+ </ div >
60
+ < table *ngIf ="!isLoadingTable2 " mat-table matSort #sort2 ="matSort " matSortActive ="facilityId " matSortDirection ="desc "
61
+ matSortDisableClear [dataSource] ="externalServicesDataSource " class ="w-100 ">
62
+ < ng-container matColumnDef ="facilityId ">
63
+ < th mat-header-cell *matHeaderCellDef class ="w-10 " mat-sort-header > {{'COMMON.ID' | translate}}</ th >
64
+ < td mat-cell *matCellDef ="let providedService "> {{providedService.facilityId}}</ td >
65
+ </ ng-container >
66
+ < ng-container matColumnDef ="name ">
67
+ < th mat-header-cell *matHeaderCellDef class ="w-20 " mat-sort-header > {{'FACILITIES.NAME' | translate}}</ th >
68
+ < td mat-cell *matCellDef ="let providedService "> {{providedService.name | itemLocale}}</ td >
69
+ </ ng-container >
70
+ < ng-container matColumnDef ="description ">
71
+ < th mat-header-cell *matHeaderCellDef class ="w-25 " mat-sort-header > {{'FACILITIES.DESCRIPTION' | translate}}</ th >
72
+ < td mat-cell *matCellDef ="let providedService "> {{providedService.description | itemLocale}}</ td >
73
+ </ ng-container >
74
+ < ng-container matColumnDef ="identifier ">
75
+ < th mat-header-cell *matHeaderCellDef class ="w-25 " mat-sort-header > {{'FACILITIES.IDENTIFIER' | translate}}</ th >
76
+ < td mat-cell *matCellDef ="let providedService "> {{providedService.identifier}}</ td >
77
+ </ ng-container >
78
+ < ng-container matColumnDef ="environment ">
79
+ < th mat-header-cell *matHeaderCellDef class ="w-10 " mat-sort-header > {{'FACILITIES.ENVIRONMENT' | translate}}</ th >
80
+ < td mat-cell *matCellDef ="let providedService "> {{providedService.environment | facilityEnvironment}}</ td >
81
+ </ ng-container >
82
+ < ng-container matColumnDef ="protocol ">
83
+ < th mat-header-cell *matHeaderCellDef class ="w-10 " mat-sort-header > {{'FACILITIES.PROTOCOL' | translate}}</ th >
84
+ < td mat-cell *matCellDef ="let providedService "> {{providedService.protocol }}</ td >
85
+ </ ng-container >
86
+ < tr mat-header-row *matHeaderRowDef ="displayedColumnsExtServices; sticky: true "> </ tr >
87
+ < tr mat-row *matRowDef ="let row; columns: displayedColumnsExtServices; " class ="hover-dark ">
88
+ </ tr >
89
+ </ table >
90
+ < mat-paginator #paginator2 [pageSizeOptions] ="[10, 25, 50] " showFirstLastButtons > </ mat-paginator >
91
+ </ div >
50
92
</ div >
51
93
</ div >
52
94
</ div >
0 commit comments