2023-12-24 16:47:38 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
2024-01-04 17:37:16 +00:00
|
|
|
<?import com.andrewlalis.perfin.view.component.PropertiesPane?>
|
2023-12-24 16:47:38 +00:00
|
|
|
<?import javafx.scene.control.*?>
|
2023-12-25 23:31:01 +00:00
|
|
|
<?import javafx.scene.layout.*?>
|
2024-01-04 17:37:16 +00:00
|
|
|
<?import javafx.scene.text.Text?>
|
2023-12-24 16:47:38 +00:00
|
|
|
<BorderPane
|
|
|
|
xmlns="http://javafx.com/javafx"
|
|
|
|
xmlns:fx="http://javafx.com/fxml"
|
|
|
|
fx:controller="com.andrewlalis.perfin.control.AccountViewController"
|
|
|
|
>
|
|
|
|
<top>
|
2024-01-09 03:43:41 +00:00
|
|
|
<Label fx:id="titleLabel" styleClass="std-padding,large-font,bold-text"/>
|
2023-12-24 16:47:38 +00:00
|
|
|
</top>
|
|
|
|
<center>
|
2023-12-31 14:37:16 +00:00
|
|
|
<VBox>
|
|
|
|
<!-- Main account properties and actions -->
|
|
|
|
<BorderPane>
|
|
|
|
<center>
|
|
|
|
<VBox styleClass="std-padding,std-spacing">
|
2024-01-04 17:37:16 +00:00
|
|
|
<FlowPane>
|
2023-12-31 14:37:16 +00:00
|
|
|
<!-- Main account properties. -->
|
2024-01-04 17:37:16 +00:00
|
|
|
<PropertiesPane vgap="5" hgap="5">
|
|
|
|
<Label text="Name" styleClass="bold-text"/>
|
|
|
|
<Label fx:id="accountNameLabel"/>
|
|
|
|
|
|
|
|
<Label text="Number" styleClass="bold-text"/>
|
|
|
|
<Label fx:id="accountNumberLabel" styleClass="mono-font"/>
|
|
|
|
|
|
|
|
<Label text="Currency" styleClass="bold-text"/>
|
|
|
|
<Label fx:id="accountCurrencyLabel"/>
|
|
|
|
|
|
|
|
<Label text="Created At" styleClass="bold-text"/>
|
|
|
|
<Label fx:id="accountCreatedAtLabel" styleClass="mono-font"/>
|
|
|
|
|
|
|
|
<VBox>
|
|
|
|
<Label text="Current Balance" styleClass="bold-text" fx:id="balanceLabel"/>
|
|
|
|
<Text
|
2024-01-05 15:59:44 +00:00
|
|
|
styleClass="small-font,secondary-color-fill"
|
2024-01-04 17:37:16 +00:00
|
|
|
wrappingWidth="${balanceLabel.width}"
|
|
|
|
>Computed using the last recorded balance and all transactions since.</Text>
|
2023-12-31 14:37:16 +00:00
|
|
|
</VBox>
|
2024-01-04 17:37:16 +00:00
|
|
|
<Label fx:id="accountBalanceLabel" styleClass="mono-font"/>
|
|
|
|
</PropertiesPane>
|
|
|
|
</FlowPane>
|
2023-12-28 17:57:03 +00:00
|
|
|
</VBox>
|
2023-12-31 14:37:16 +00:00
|
|
|
</center>
|
|
|
|
<right>
|
|
|
|
<VBox styleClass="std-padding,std-spacing">
|
|
|
|
<Label text="Actions" styleClass="bold-text"/>
|
2024-01-04 17:37:16 +00:00
|
|
|
<VBox fx:id="actionsVBox" styleClass="std-spacing">
|
|
|
|
<Button text="Edit" onAction="#goToEditPage"/>
|
|
|
|
<Button text="Record Balance" onAction="#goToCreateBalanceRecord"/>
|
|
|
|
<Button text="Archive" onAction="#archiveAccount"/>
|
|
|
|
<Button text="Delete" onAction="#deleteAccount"/>
|
|
|
|
<Button text="Unarchive" onAction="#unarchiveAccount"/>
|
|
|
|
</VBox>
|
2023-12-28 17:57:03 +00:00
|
|
|
</VBox>
|
2023-12-31 14:37:16 +00:00
|
|
|
</right>
|
|
|
|
</BorderPane>
|
|
|
|
|
|
|
|
<!-- Account history -->
|
|
|
|
<VBox VBox.vgrow="ALWAYS">
|
2024-01-04 17:37:16 +00:00
|
|
|
<Label text="History" styleClass="bold-text,std-padding"/>
|
2023-12-31 05:34:37 +00:00
|
|
|
<VBox>
|
2024-01-08 16:49:02 +00:00
|
|
|
<ScrollPane styleClass="tile-container-scroll">
|
|
|
|
<VBox fx:id="historyItemsVBox" styleClass="tile-container"/>
|
2023-12-31 05:34:37 +00:00
|
|
|
</ScrollPane>
|
|
|
|
<AnchorPane>
|
|
|
|
<Button
|
|
|
|
fx:id="loadMoreHistoryButton"
|
|
|
|
text="Load more history"
|
|
|
|
onAction="#loadMoreHistory"
|
|
|
|
AnchorPane.leftAnchor="0.0"
|
|
|
|
AnchorPane.rightAnchor="0.0"
|
|
|
|
/>
|
|
|
|
</AnchorPane>
|
|
|
|
</VBox>
|
|
|
|
</VBox>
|
2023-12-24 16:47:38 +00:00
|
|
|
</VBox>
|
|
|
|
</center>
|
|
|
|
</BorderPane>
|