fix: Create Guarantor form issues (#2284)
Client Detail must only be shown when Name got selected. Prevent any Javascript errors. Enable the user to enter a date of birth before 2000. Fixes: WEB-30
This commit is contained in:
+2
-2
@@ -37,7 +37,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<ng-container *ngIf="accountOptions.length > 0">
|
<ng-container *ngIf="accountOptions?.length > 0">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-label>{{ 'labels.inputs.Account' | translate }}</mat-label>
|
<mat-label>{{ 'labels.inputs.Account' | translate }}</mat-label>
|
||||||
<mat-select formControlName="savingsId">
|
<mat-select formControlName="savingsId">
|
||||||
@@ -137,7 +137,7 @@
|
|||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<ng-container *ngIf="!(newGuarantorForm.controls.name === undefined)">
|
<ng-container *ngIf="newGuarantorForm?.controls?.name?.value">
|
||||||
<div class="mat-table">
|
<div class="mat-table">
|
||||||
<div class="mat-header-row">
|
<div class="mat-header-row">
|
||||||
<div class="mat-header-cell">{{ 'labels.inputs.Client Details' | translate }}</div>
|
<div class="mat-header-cell">{{ 'labels.inputs.Client Details' | translate }}</div>
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ export class CreateGuarantorComponent implements OnInit, AfterViewInit {
|
|||||||
/** Show Client Details Form */
|
/** Show Client Details Form */
|
||||||
showClientDetailsForm = false;
|
showClientDetailsForm = false;
|
||||||
/** Minimum date allowed. */
|
/** Minimum date allowed. */
|
||||||
minDate = new Date(2000, 0, 1);
|
minDate = new Date(1900, 0, 1);
|
||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Client data. */
|
/** Client data. */
|
||||||
|
|||||||
Reference in New Issue
Block a user