2023-12-28 16:32:20 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
2024-01-12 03:16:24 +00:00
|
|
|
<?import com.andrewlalis.perfin.view.component.AccountSelectionBox?>
|
2024-01-08 00:05:09 +00:00
|
|
|
<?import com.andrewlalis.perfin.view.component.PropertiesPane?>
|
2023-12-28 16:32:20 +00:00
|
|
|
<?import javafx.scene.control.*?>
|
|
|
|
<?import javafx.scene.layout.*?>
|
|
|
|
<BorderPane xmlns="http://javafx.com/javafx"
|
|
|
|
xmlns:fx="http://javafx.com/fxml"
|
2024-01-11 13:46:57 +00:00
|
|
|
fx:controller="com.andrewlalis.perfin.control.EditTransactionController"
|
2023-12-28 16:32:20 +00:00
|
|
|
>
|
2024-01-11 13:46:57 +00:00
|
|
|
<top>
|
|
|
|
<Label fx:id="titleLabel" styleClass="large-font,bold-text,std-padding"/>
|
|
|
|
</top>
|
2023-12-28 16:32:20 +00:00
|
|
|
<center>
|
|
|
|
<ScrollPane fitToWidth="true" fitToHeight="true">
|
2024-01-08 14:49:34 +00:00
|
|
|
<VBox style="-fx-max-width: 500px;">
|
2023-12-28 21:19:21 +00:00
|
|
|
<!-- Basic properties -->
|
2024-01-08 00:05:09 +00:00
|
|
|
<PropertiesPane hgap="5" vgap="5" styleClass="std-padding">
|
|
|
|
<columnConstraints>
|
|
|
|
<ColumnConstraints hgrow="NEVER" halignment="LEFT" minWidth="150"/>
|
|
|
|
<ColumnConstraints hgrow="ALWAYS" halignment="RIGHT"/>
|
|
|
|
</columnConstraints>
|
|
|
|
|
2023-12-28 16:32:20 +00:00
|
|
|
<Label text="Timestamp" labelFor="${timestampField}" styleClass="bold-text"/>
|
|
|
|
<TextField fx:id="timestampField" styleClass="mono-font"/>
|
2024-01-08 00:05:09 +00:00
|
|
|
|
2023-12-28 16:32:20 +00:00
|
|
|
<Label text="Amount" labelFor="${amountField}" styleClass="bold-text"/>
|
|
|
|
<TextField fx:id="amountField" styleClass="mono-font"/>
|
2024-01-08 00:05:09 +00:00
|
|
|
|
2023-12-28 16:32:20 +00:00
|
|
|
<Label text="Currency" labelFor="${currencyChoiceBox}" styleClass="bold-text"/>
|
|
|
|
<ChoiceBox fx:id="currencyChoiceBox"/>
|
2024-01-08 00:05:09 +00:00
|
|
|
|
2023-12-28 16:32:20 +00:00
|
|
|
<Label text="Description" labelFor="${descriptionField}" styleClass="bold-text"/>
|
2023-12-29 02:31:42 +00:00
|
|
|
<TextArea
|
|
|
|
fx:id="descriptionField"
|
|
|
|
styleClass="mono-font"
|
|
|
|
wrapText="true"
|
|
|
|
style="-fx-pref-height: 100px;-fx-min-height: 100px;"
|
|
|
|
/>
|
2024-01-08 00:05:09 +00:00
|
|
|
</PropertiesPane>
|
|
|
|
|
2023-12-28 21:19:21 +00:00
|
|
|
<!-- Container for linked accounts -->
|
2024-01-08 00:05:09 +00:00
|
|
|
<HBox styleClass="std-padding,std-spacing" fx:id="linkedAccountsContainer">
|
|
|
|
<VBox>
|
2024-01-12 03:16:24 +00:00
|
|
|
<Label text="Debited Account" labelFor="${debitAccountSelector}" styleClass="bold-text"/>
|
|
|
|
<AccountSelectionBox fx:id="debitAccountSelector" allowNone="true"/>
|
2024-01-08 00:05:09 +00:00
|
|
|
</VBox>
|
|
|
|
<VBox>
|
2024-01-12 03:16:24 +00:00
|
|
|
<Label text="Credited Account" labelFor="${creditAccountSelector}" styleClass="bold-text"/>
|
|
|
|
<AccountSelectionBox fx:id="creditAccountSelector" allowNone="true"/>
|
2024-01-08 00:05:09 +00:00
|
|
|
</VBox>
|
|
|
|
</HBox>
|
2023-12-28 21:19:21 +00:00
|
|
|
<!-- Container for attachments -->
|
2024-01-08 00:05:09 +00:00
|
|
|
<VBox fx:id="attachmentsVBox" styleClass="std-padding">
|
2023-12-28 21:19:21 +00:00
|
|
|
<Label text="Attachments" styleClass="bold-text"/>
|
2024-01-05 15:59:44 +00:00
|
|
|
<Label text="Attach receipts, invoices, or other content to this transaction." styleClass="small-font" wrapText="true"/>
|
2023-12-31 16:48:59 +00:00
|
|
|
<!-- FileSelectionArea inserted here! -->
|
2023-12-28 21:19:21 +00:00
|
|
|
</VBox>
|
2024-01-08 00:05:09 +00:00
|
|
|
|
|
|
|
<!-- Buttons -->
|
|
|
|
<Separator/>
|
|
|
|
<HBox styleClass="std-padding,std-spacing" alignment="CENTER_RIGHT">
|
|
|
|
<Button text="Save" fx:id="saveButton" onAction="#save"/>
|
|
|
|
<Button text="Cancel" onAction="#cancel"/>
|
|
|
|
</HBox>
|
2023-12-28 16:32:20 +00:00
|
|
|
</VBox>
|
|
|
|
</ScrollPane>
|
|
|
|
</center>
|
|
|
|
</BorderPane>
|