refactor(clients): clients list page

- use statuslookup.pipe to set styles to represent status of the client
- add button to import client and create client
- add server side pagination
- toggle show closed clients in table
This commit is contained in:
Jivjyot Singh
2019-12-01 23:20:51 +03:00
committed by Abhay Chawla
parent 6c7e8ad7ba
commit 504a14b968
13 changed files with 186 additions and 117 deletions
+10 -1
View File
@@ -26,7 +26,16 @@ export class StatusLookupPipe implements PipeTransform {
'shareAccountStatusType.active': 'status-active',
'shareAccountStatusType.rejected': 'status-rejected',
'loanProduct.active': 'status-active',
'loanProduct.inActive': 'status-inactive'
'loanProduct.inActive': 'status-inactive',
'clientStatusType.pending': 'status-pending',
'clientStatusType.closed': 'status-closed',
'clientStatusType.rejected': 'status-rejected', // write
'clientStatusType.withdraw': 'status-withdraw', // write
'clientStatusType.active': 'status-active',
'clientStatusType.submitted.and.pending.approval': 'status-pending',
'clientStatusTYpe.approved': 'status-approved',
'clientStatusType.transfer.in.progress': 'status-transfer-progress', // write
'clientStatusType.transfer.on.hold': 'status-transfer-hold' // write
};
return cssClassNameLookup[status];
}