Skip to content

Commit 0bcef74

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 02b449c commit 0bcef74

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,21 @@
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>
6075
</div>
6176
</div>
6277

@@ -83,6 +98,21 @@
8398
<strong>{{ 'labels.commons.required' | translate }}</strong>
8499
</mat-error>
85100
</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>
86116
</div>
87117
</div>
88118

0 commit comments

Comments
 (0)