From 292a91ad0035bb95c87efa77660eea2b9c1634fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Alberto=20Hern=C3=A1ndez?= <44206706+josehernandezfintecheandomx@users.noreply.github.com> Date: Wed, 30 Aug 2023 16:37:29 -0600 Subject: [PATCH] Minor fixes in Loan product Advanced Payment Allocation (#1856) Co-authored-by: Jose Alberto Hernandez --- .../create-glim-account.component.ts | 10 --- .../glim-account/glim-account.component.html | 8 +-- .../glim-account/glim-account.component.scss | 61 +++++++++++-------- ...oduct-payment-strategy-step.component.html | 16 ++--- ...product-payment-strategy-step.component.ts | 2 +- 5 files changed, 47 insertions(+), 50 deletions(-) diff --git a/src/app/loans/glim-account/create-glim-account/create-glim-account.component.ts b/src/app/loans/glim-account/create-glim-account/create-glim-account.component.ts index fceca6e8a..0db497d83 100644 --- a/src/app/loans/glim-account/create-glim-account/create-glim-account.component.ts +++ b/src/app/loans/glim-account/create-glim-account/create-glim-account.component.ts @@ -1,16 +1,9 @@ import { Component, OnInit, ViewChild } from '@angular/core'; -import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { MatDialog } from '@angular/material/dialog'; -import { MatPaginator } from '@angular/material/paginator'; -import { MatTableDataSource } from '@angular/material/table'; import { ActivatedRoute, Router } from '@angular/router'; import { Dates } from 'app/core/utils/dates'; import { LoansService } from 'app/loans/loans.service'; import { SettingsService } from 'app/settings/settings.service'; -import { FormDialogComponent } from 'app/shared/form-dialog/form-dialog.component'; -import { DatepickerBase } from 'app/shared/form-dialog/formfield/model/datepicker-base'; -import { FormfieldBase } from 'app/shared/form-dialog/formfield/model/formfield-base'; -import { InputBase } from 'app/shared/form-dialog/formfield/model/input-base'; import { GlimChargesStepComponent } from './glim-account-stepper/glim-charges-step/glim-charges-step.component'; import { GlimDetailsStepComponent } from './glim-account-stepper/glim-details-step/glim-details-step.component'; import { GlimTermsStepComponent } from './glim-account-stepper/glim-terms-step/glim-terms-step.component'; @@ -112,8 +105,6 @@ export class CreateGlimAccountComponent implements OnInit { }; } - - setData(client: any): any { const locale = this.settingsService.language.code; const dateFormat = this.settingsService.dateFormat; @@ -140,7 +131,6 @@ export class CreateGlimAccountComponent implements OnInit { data.groupId = this.loansAccountTemplate.group.id; return JSON.stringify(data); - } /** Request Body Data */ diff --git a/src/app/loans/glim-account/glim-account.component.html b/src/app/loans/glim-account/glim-account.component.html index 9a5ce69cb..a717dfbcb 100644 --- a/src/app/loans/glim-account/glim-account.component.html +++ b/src/app/loans/glim-account/glim-account.component.html @@ -1,6 +1,6 @@ -
+ -
+

GLIM Account Overview

@@ -42,5 +42,5 @@ - -
+ +
diff --git a/src/app/loans/glim-account/glim-account.component.scss b/src/app/loans/glim-account/glim-account.component.scss index 8fd9a5c15..2f2e59ca3 100644 --- a/src/app/loans/glim-account/glim-account.component.scss +++ b/src/app/loans/glim-account/glim-account.component.scss @@ -1,33 +1,40 @@ -.tab-container { +.loan-card { + margin: 0 auto; + max-width: 80rem; + width: 90%; + padding: 0; + .header { padding: 1%; - margin: 1%; - h3 { - margin:1% auto; - } - .group-details-container { - border: 1px solid; - padding: 1%; - } - .action-button{ - margin-left: auto; - } - table { - width: 100%; - .account-action-button{ - min-width: 26px; - padding: 0 6px; - margin: 4px; - line-height: 25px; - } - tr.select-row:hover { - cursor: pointer; + .header-title-group { + .loan-card-title { + color: white; + width: 90%; + p { + color: white; + } } } - i:hover { - cursor: pointer; + .profile-image-container { + margin: 1%; + .profile-image { + object-fit: cover; + border-radius: 20px; + } } - tr:hover { - cursor: pointer; + .loan-actions { + align-self: flex-end; + margin: 0 1%; + // min-width: 72%; + } + .loan-span { + margin: 0 0.5%; } } - \ No newline at end of file + .navigation-tabs { + overflow: auto; + } +} + +.loans-overview{ + font-size: 14px; +} diff --git a/src/app/products/loan-products/loan-product-stepper/loan-product-payment-strategy-step/loan-product-payment-strategy-step.component.html b/src/app/products/loan-products/loan-product-stepper/loan-product-payment-strategy-step/loan-product-payment-strategy-step.component.html index 21b3b7382..898da7b86 100644 --- a/src/app/products/loan-products/loan-product-stepper/loan-product-payment-strategy-step/loan-product-payment-strategy-step.component.html +++ b/src/app/products/loan-products/loan-product-stepper/loan-product-payment-strategy-step/loan-product-payment-strategy-step.component.html @@ -10,22 +10,22 @@ -
+

You can drag and drop the rows to set a Payment Allocations order

+
- - - - - + [cdkDropListData]="paymentAllocationsData" (cdkDropListDropped)="dropTable($event)"> + + + + +
Order {{ (rowIndex + 1) }} Payment Allocation {{ paymentAllocation.name }} Order {{ (rowIndex + 1) }}
diff --git a/src/app/products/loan-products/loan-product-stepper/loan-product-payment-strategy-step/loan-product-payment-strategy-step.component.ts b/src/app/products/loan-products/loan-product-stepper/loan-product-payment-strategy-step/loan-product-payment-strategy-step.component.ts index a86d7cf57..bbccfa3b0 100644 --- a/src/app/products/loan-products/loan-product-stepper/loan-product-payment-strategy-step/loan-product-payment-strategy-step.component.ts +++ b/src/app/products/loan-products/loan-product-stepper/loan-product-payment-strategy-step/loan-product-payment-strategy-step.component.ts @@ -27,7 +27,7 @@ export class LoanProductPaymentStrategyStepComponent implements OnInit { @ViewChild('table') table: MatTable; /** Columns to be displayed in the table. */ - displayedColumns: string[] = ['order', 'paymentAllocation']; + displayedColumns: string[] = ['paymentAllocation', 'order']; constructor() { }