5
5
< div class ="left triangle "> </ div >
6
6
< div class ="right triangle "> </ div >
7
7
</ div >
8
- < mat-card *ngIf ="!isLoading ">
8
+ < mat-card *ngIf ="!isLoading " class =" transfer-card " >
9
9
< mat-card-content >
10
- < div class ="layout-row-wrap responsive-column ">
11
- < h3 class ="mat-h3 flex-fill "> {{ 'labels.heading.Transferring From Details' | translate }}</ h3 >
12
-
13
- < mat-divider [inset] ="true "> </ mat-divider >
14
-
15
- < div class ="flex-fill ">
16
- < span class ="flex-40 "> {{ 'labels.inputs.Applicant' | translate }}</ span >
17
- < span class ="flex-60 "> {{ accountTransferTemplateData.fromClient.displayName }}</ span >
18
- </ div >
19
-
20
- < div class ="flex-fill ">
21
- < span class ="flex-40 "> {{ 'labels.inputs.Office' | translate }}</ span >
22
- < span class ="flex-60 "> {{ accountTransferTemplateData.fromOffice.name }}</ span >
23
- </ div >
24
-
25
- < div class ="flex-fill ">
26
- < span class ="flex-40 "> {{ 'labels.inputs.From Account' | translate }}</ span >
27
- < span class ="flex-60 "
28
- > {{ accountTransferTemplateData.fromAccount.productName }} - #{{
29
- accountTransferTemplateData.fromAccount.accountNo
30
- }}</ span
31
- >
32
- </ div >
33
-
34
- < div class ="flex-fill ">
35
- < span class ="flex-40 "> {{ 'labels.inputs.From Account Type' | translate }}</ span >
36
- < span class ="flex-60 "> {{ accountTransferTemplateData.fromAccountType.value }}</ span >
37
- </ div >
38
-
39
- < div class ="flex-fill ">
40
- < span class ="flex-40 "> {{ 'labels.inputs.Currency' | translate }}</ span >
41
- < span class ="flex-60 "> {{ accountTransferTemplateData.currency.name }}</ span >
10
+ <!-- Source Account Details Section -->
11
+ < div class ="section-container ">
12
+ < h3 class ="section-title transfer-heading "> {{ 'labels.heading.Transferring From Details' | translate }}</ h3 >
13
+
14
+ < mat-divider > </ mat-divider >
15
+
16
+ < div class ="info-grid ">
17
+ < div class ="info-row ">
18
+ < div class ="info-label "> {{ 'labels.inputs.Applicant' | translate }}</ div >
19
+ < div class ="info-value "> {{ accountTransferTemplateData.fromClient.displayName }}</ div >
20
+ </ div >
21
+
22
+ < div class ="info-row ">
23
+ < div class ="info-label "> {{ 'labels.inputs.Office' | translate }}</ div >
24
+ < div class ="info-value "> {{ accountTransferTemplateData.fromOffice.name }}</ div >
25
+ </ div >
26
+
27
+ < div class ="info-row ">
28
+ < div class ="info-label "> {{ 'labels.inputs.From Account' | translate }}</ div >
29
+ < div class ="info-value ">
30
+ {{ accountTransferTemplateData.fromAccount.productName }} - #{{
31
+ accountTransferTemplateData.fromAccount.accountNo
32
+ }}
33
+ </ div >
34
+ </ div >
35
+
36
+ < div class ="info-row ">
37
+ < div class ="info-label "> {{ 'labels.inputs.From Account Type' | translate }}</ div >
38
+ < div class ="info-value "> {{ accountTransferTemplateData.fromAccountType.value }}</ div >
39
+ </ div >
40
+
41
+ < div class ="info-row ">
42
+ < div class ="info-label "> {{ 'labels.inputs.Currency' | translate }}</ div >
43
+ < div class ="info-value "> {{ accountTransferTemplateData.currency.name }}</ div >
44
+ </ div >
42
45
</ div >
43
46
</ div >
44
47
45
- < div *ngIf ="interbank ">
46
- < div class ="flex-fill ">
47
- < h3 class ="mat-h3 flex-40 align-start-center ">
48
- {{ 'labels.heading.Transferred To' | translate }}
49
- </ h3 >
50
- < mat-form-field class ="flex-40 ">
48
+ <!-- Interbank Section -->
49
+ < div *ngIf ="interbank " class ="section-container ">
50
+ < div class ="interbank-section ">
51
+ < h3 class ="section-title transfer-heading "> {{ 'labels.heading.Transferred To' | translate }}</ h3 >
52
+ < mat-form-field class ="full-width ">
51
53
< mat-label > {{ 'labels.inputs.Phone Number' | translate }}</ mat-label >
52
54
< input
53
55
matInput
@@ -57,13 +59,15 @@ <h3 class="mat-h3 flex-40 align-start-center">
57
59
[(ngModel)] ="phoneAccount "
58
60
maxlength ="10 "
59
61
required
60
- /> <!-- formControlName="phoneNumber" -->
62
+ placeholder ="Enter phone number "
63
+ title ="Phone number "
64
+ />
61
65
< mat-hint align ="end "> {{ phoneAccount.length || 0 }}/10</ mat-hint >
62
66
</ mat-form-field >
63
67
</ div >
64
68
65
- < mat-card-actions *ngIf ="!interbankTransferForm " class ="layout-row align-center gap-5px responsive-column ">
66
- < button type ="button " mat-raised-button [routerLink] ="['../..'] ">
69
+ < mat-card-actions *ngIf ="!interbankTransferForm " class ="action-buttons ">
70
+ < button type ="button " mat-raised-button [routerLink] ="['../..'] " class =" cancel-button " >
67
71
{{ 'labels.buttons.Cancel' | translate }}
68
72
</ button >
69
73
< button
@@ -73,17 +77,21 @@ <h3 class="mat-h3 flex-40 align-start-center">
73
77
(click) ="searchAccountByNumber() "
74
78
*mifosxHasPermission ="'CREATE_ACCOUNTTRANSFER' "
75
79
id ="search-button "
80
+ class ="primary-button "
76
81
>
77
82
{{ 'labels.buttons.Search' | translate }}
78
83
</ button >
79
84
</ mat-card-actions >
80
85
</ div >
81
86
82
- < mat-divider [inset] ="true "> </ mat-divider >
87
+ < mat-divider *ngIf ="!interbank "> </ mat-divider >
88
+
89
+ <!-- Transfer Form Section -->
90
+ < form *ngIf ="!interbank " [formGroup] ="makeAccountTransferForm " class ="transfer-form ">
91
+ < h3 class ="section-title transfer-heading "> {{ 'labels.heading.Transfer Details' | translate }}</ h3 >
83
92
84
- < form *ngIf ="!interbank " [formGroup] ="makeAccountTransferForm ">
85
- < div class ="layout-row-wrap gap-2px responsive-column ">
86
- < mat-form-field class ="flex-98 " (click) ="transferDatePicker.open() ">
93
+ < div class ="form-grid ">
94
+ < mat-form-field class ="form-field " (click) ="transferDatePicker.open() ">
87
95
< mat-label > {{ 'labels.inputs.Transaction Date' | translate }}</ mat-label >
88
96
< input
89
97
matInput
@@ -92,6 +100,8 @@ <h3 class="mat-h3 flex-40 align-start-center">
92
100
[matDatepicker] ="transferDatePicker "
93
101
required
94
102
formControlName ="transferDate "
103
+ placeholder ="Select date "
104
+ title ="Transaction Date "
95
105
/>
96
106
< mat-datepicker-toggle matSuffix [for] ="transferDatePicker "> </ mat-datepicker-toggle >
97
107
< mat-datepicker #transferDatePicker > </ mat-datepicker >
@@ -101,7 +111,7 @@ <h3 class="mat-h3 flex-40 align-start-center">
101
111
</ mat-error >
102
112
</ mat-form-field >
103
113
104
- < mat-form-field class ="flex-98 ">
114
+ < mat-form-field class ="form-field ">
105
115
< mat-label > {{ 'labels.inputs.Office' | translate }}</ mat-label >
106
116
< mat-select required formControlName ="toOfficeId " (selectionChange) ="changeEvent() ">
107
117
< mat-option *ngFor ="let toOfficeType of toOfficeTypeData " [value] ="toOfficeType.id ">
@@ -114,9 +124,15 @@ <h3 class="mat-h3 flex-40 align-start-center">
114
124
</ mat-error >
115
125
</ mat-form-field >
116
126
117
- < mat-form-field class ="flex-98 ">
127
+ < mat-form-field class ="form-field ">
118
128
< mat-label > {{ 'labels.inputs.Client' | translate }}</ mat-label >
119
- < input matInput formControlName ="toClientId " [matAutocomplete] ="clientsAutocomplete " />
129
+ < input
130
+ matInput
131
+ formControlName ="toClientId "
132
+ [matAutocomplete] ="clientsAutocomplete "
133
+ placeholder ="Select or type client name "
134
+ title ="Client name "
135
+ />
120
136
< mat-error *ngIf ="makeAccountTransferForm.controls.toClientId.hasError('required') ">
121
137
{{ 'labels.inputs.Client' | translate }} {{ 'labels.commons.is' | translate }}
122
138
< strong > {{ 'labels.commons.required' | translate }}</ strong >
@@ -129,7 +145,7 @@ <h3 class="mat-h3 flex-40 align-start-center">
129
145
</ mat-option >
130
146
</ mat-autocomplete >
131
147
132
- < mat-form-field class ="flex-98 ">
148
+ < mat-form-field class ="form-field ">
133
149
< mat-label > {{ 'labels.inputs.Account Type' | translate }}</ mat-label >
134
150
< mat-select required formControlName ="toAccountType " (selectionChange) ="changeEvent() ">
135
151
< mat-option *ngFor ="let toAccountType of toAccountTypeData " [value] ="toAccountType.id ">
@@ -142,7 +158,7 @@ <h3 class="mat-h3 flex-40 align-start-center">
142
158
</ mat-error >
143
159
</ mat-form-field >
144
160
145
- < mat-form-field class ="flex-98 ">
161
+ < mat-form-field class ="form-field ">
146
162
< mat-label > {{ 'labels.inputs.Account' | translate }}</ mat-label >
147
163
< mat-select required formControlName ="toAccountId " (selectionChange) ="changeEvent() ">
148
164
< mat-option *ngFor ="let toAccount of toAccountData " [value] ="toAccount.id ">
@@ -155,9 +171,16 @@ <h3 class="mat-h3 flex-40 align-start-center">
155
171
</ mat-error >
156
172
</ mat-form-field >
157
173
158
- < mat-form-field class ="flex-98 ">
174
+ < mat-form-field class ="form-field ">
159
175
< mat-label > {{ 'labels.inputs.Amount' | translate }}</ mat-label >
160
- < input type ="number " matInput required formControlName ="transferAmount " />
176
+ < input
177
+ type ="number "
178
+ matInput
179
+ required
180
+ formControlName ="transferAmount "
181
+ placeholder ="Enter amount "
182
+ title ="Transfer amount "
183
+ />
161
184
< mat-error *ngIf ="makeAccountTransferForm.controls.transferAmount.hasError('required') ">
162
185
{{ 'labels.inputs.Amount' | translate }} {{ 'labels.commons.is' | translate }}
163
186
< strong > {{ 'labels.commons.required' | translate }}</ strong >
@@ -168,13 +191,15 @@ <h3 class="mat-h3 flex-40 align-start-center">
168
191
</ mat-error >
169
192
</ mat-form-field >
170
193
171
- < mat-form-field class ="flex-98 ">
194
+ < mat-form-field class ="form-field description-field ">
172
195
< mat-label > {{ 'labels.inputs.Description' | translate }}</ mat-label >
173
196
< textarea
174
197
matInput
175
198
formControlName ="transferDescription "
176
199
cdkTextareaAutosize
177
200
cdkAutosizeMinRows ="2 "
201
+ placeholder ="Enter transfer description "
202
+ title ="Transfer description "
178
203
> </ textarea >
179
204
< mat-error *ngIf ="makeAccountTransferForm.controls.transferDescription.hasError('required') ">
180
205
{{ 'labels.inputs.Transfer Description' | translate }} {{ 'labels.commons.is' | translate }}
@@ -190,8 +215,8 @@ <h3 class="mat-h3 flex-40 align-start-center">
190
215
> </ mifosx-make-account-interbank-transfers >
191
216
</ mat-card-content >
192
217
193
- < mat-card-actions *ngIf ="!interbankTransferForm " class ="layout-row align-center gap-5px responsive-column ">
194
- < button type ="button " mat-raised-button [routerLink] ="['../..'] ">
218
+ < mat-card-actions *ngIf ="!interbankTransferForm " class ="action-buttons ">
219
+ < button type ="button " mat-raised-button [routerLink] ="['../..'] " class =" cancel-button " >
195
220
{{ 'labels.buttons.Cancel' | translate }}
196
221
</ button >
197
222
< button
@@ -200,6 +225,7 @@ <h3 class="mat-h3 flex-40 align-start-center">
200
225
[disabled] ="!makeAccountTransferForm.valid "
201
226
*mifosxHasPermission ="'CREATE_ACCOUNTTRANSFER' "
202
227
(click) ="submit() "
228
+ class ="primary-button "
203
229
>
204
230
{{ 'labels.buttons.Submit' | translate }}
205
231
</ button >
0 commit comments