Skip to content

Commit 02b449c

Browse files
committed
WEB-411: Improve alignment of Debit and Credit Amount fields in Create Journal Entry form
- Adjusted Debit Amount field to flex-24 to align under Currency field - Adjusted Credit Amount field to flex-24 to align under Currency field - Kept GL Entry fields at flex-48 to align under Office field - Removed add/remove buttons for cleaner layout - Maintained consistent 2% gap between fields for proper spacing
1 parent 03e6703 commit 02b449c

File tree

1 file changed

+2
-32
lines changed

1 file changed

+2
-32
lines changed

src/app/accounting/create-journal-entry/create-journal-entry.component.html

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -49,29 +49,14 @@
4949
>
5050
</mifosx-gl-account-selector>
5151

52-
<mat-form-field class="flex-43">
52+
<mat-form-field class="flex-24">
5353
<mat-label>{{ 'labels.inputs.Debit Amount' | translate }}</mat-label>
5454
<input type="number" matInput required formControlName="amount" />
5555
<mat-error *ngIf="debits.at(i).controls.amount.hasError('required')">
5656
{{ 'labels.inputs.Debit Amount' | translate }} {{ 'labels.commons.is' | translate }}
5757
<strong>{{ 'labels.commons.required' | translate }}</strong>
5858
</mat-error>
5959
</mat-form-field>
60-
61-
<span class="flex-fill">
62-
<button *ngIf="i !== 0" type="button" mat-icon-button (click)="removeAffectedGLEntry(debits, i)">
63-
<fa-icon icon="minus-circle" size="lg"></fa-icon>
64-
</button>
65-
<button
66-
*ngIf="i === 0"
67-
type="button"
68-
mat-icon-button
69-
color="primary"
70-
(click)="addAffectedGLEntry(debits)"
71-
>
72-
<fa-icon icon="plus-circle" size="lg"></fa-icon>
73-
</button>
74-
</span>
7560
</div>
7661
</div>
7762

@@ -90,29 +75,14 @@
9075
>
9176
</mifosx-gl-account-selector>
9277

93-
<mat-form-field class="flex-43">
78+
<mat-form-field class="flex-24">
9479
<mat-label>{{ 'labels.inputs.Credit Amount' | translate }}</mat-label>
9580
<input type="number" matInput required formControlName="amount" />
9681
<mat-error *ngIf="credits.at(i).controls.amount.hasError('required')">
9782
{{ 'labels.inputs.Credit Amount' | translate }} {{ 'labels.commons.is' | translate }}
9883
<strong>{{ 'labels.commons.required' | translate }}</strong>
9984
</mat-error>
10085
</mat-form-field>
101-
102-
<span class="flex-fill">
103-
<button *ngIf="i !== 0" type="button" mat-icon-button (click)="removeAffectedGLEntry(credits, i)">
104-
<fa-icon icon="minus-circle" size="lg"></fa-icon>
105-
</button>
106-
<button
107-
*ngIf="i === 0"
108-
type="button"
109-
mat-icon-button
110-
color="primary"
111-
(click)="addAffectedGLEntry(credits)"
112-
>
113-
<fa-icon icon="plus-circle" size="lg"></fa-icon>
114-
</button>
115-
</span>
11686
</div>
11787
</div>
11888

0 commit comments

Comments
 (0)