Skip to content

Commit cb57e85

Browse files
committed
WEB-411: Improve alignment of Debit and Credit Amount fields in Create Journal Entry form
- Changed Debit Amount field from flex-43 to flex-24 to align under Currency field - Changed Credit Amount field from flex-43 to flex-24 to align under External Asset Owner field - Kept all add/remove button functionality intact
1 parent 03e6703 commit cb57e85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
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')">
@@ -58,7 +58,7 @@
5858
</mat-error>
5959
</mat-form-field>
6060

61-
<span class="flex-fill">
61+
<span class="flex-24">
6262
<button *ngIf="i !== 0" type="button" mat-icon-button (click)="removeAffectedGLEntry(debits, i)">
6363
<fa-icon icon="minus-circle" size="lg"></fa-icon>
6464
</button>
@@ -90,7 +90,7 @@
9090
>
9191
</mifosx-gl-account-selector>
9292

93-
<mat-form-field class="flex-43">
93+
<mat-form-field class="flex-24">
9494
<mat-label>{{ 'labels.inputs.Credit Amount' | translate }}</mat-label>
9595
<input type="number" matInput required formControlName="amount" />
9696
<mat-error *ngIf="credits.at(i).controls.amount.hasError('required')">
@@ -99,7 +99,7 @@
9999
</mat-error>
100100
</mat-form-field>
101101

102-
<span class="flex-fill">
102+
<span class="flex-24">
103103
<button *ngIf="i !== 0" type="button" mat-icon-button (click)="removeAffectedGLEntry(credits, i)">
104104
<fa-icon icon="minus-circle" size="lg"></fa-icon>
105105
</button>

0 commit comments

Comments
 (0)