|
39 | 39 | <mat-form-field class="flex-fill flex-23"> |
40 | 40 | <mat-label>{{ 'labels.inputs.External Id' | translate }}</mat-label> |
41 | 41 | <input matInput formControlName="externalId" /> |
| 42 | + @if (!externalNationalIdService.isLoading && externalNationalIdService.statusMessageKey) { |
| 43 | + <mat-hint> |
| 44 | + <span |
| 45 | + class="external-id-status" |
| 46 | + [ngClass]="{ |
| 47 | + success: externalNationalIdService.statusMessageKey === 'External ID verified successfully', |
| 48 | + error: externalNationalIdService.statusMessageKey !== 'External ID verified successfully' |
| 49 | + }" |
| 50 | + > |
| 51 | + {{ 'labels.inputs.' + externalNationalIdService.statusMessageKey | translate }} |
| 52 | + </span> |
| 53 | + </mat-hint> |
| 54 | + } |
42 | 55 | </mat-form-field> |
43 | 56 |
|
44 | | - @if (createClientForm.contains('fullname')) { |
| 57 | + @if (createClientForm.get('fullname')) { |
45 | 58 | <mat-form-field class="flex-48"> |
46 | 59 | <mat-label> |
47 | 60 | {{ 'labels.inputs.' + getDateLabel(createClientForm.value.legalFormId, ['Name', 'Entity Name']) | translate }} |
|
62 | 75 | </mat-form-field> |
63 | 76 | } |
64 | 77 |
|
65 | | - @if ( |
66 | | - createClientForm.contains('firstname') || |
67 | | - createClientForm.contains('middlename') || |
68 | | - createClientForm.contains('lastname') |
69 | | - ) { |
| 78 | + @if (createClientForm.get('firstname') || createClientForm.get('middlename') || createClientForm.get('lastname')) { |
70 | 79 | <div class="name-fields-row"> |
71 | | - @if (createClientForm.contains('firstname')) { |
| 80 | + @if (createClientForm.get('firstname')) { |
72 | 81 | <mat-form-field class="name-field first-name"> |
73 | 82 | <mat-label>{{ 'labels.inputs.First Name' | translate }}</mat-label> |
74 | 83 | <input matInput required formControlName="firstname" /> |
|
87 | 96 | } |
88 | 97 | </mat-form-field> |
89 | 98 | } |
90 | | - @if (createClientForm.contains('middlename')) { |
| 99 | + @if (createClientForm.get('middlename')) { |
91 | 100 | <mat-form-field class="name-field middle-name"> |
92 | 101 | <mat-label>{{ 'labels.inputs.Middle Name' | translate }}</mat-label> |
93 | 102 | <input matInput formControlName="middlename" /> |
|
100 | 109 | } |
101 | 110 | </mat-form-field> |
102 | 111 | } |
103 | | - @if (createClientForm.contains('lastname')) { |
| 112 | + @if (createClientForm.get('lastname')) { |
104 | 113 | <mat-form-field class="name-field last-name"> |
105 | 114 | <mat-label>{{ 'labels.inputs.Last Name' | translate }}</mat-label> |
106 | 115 | <input matInput required formControlName="lastname" /> |
|
0 commit comments