diff --git a/input.css b/input.css
index 5799520..6c4abce 100644
--- a/input.css
+++ b/input.css
@@ -24,17 +24,6 @@ input:focus {
--font-shippori: "Shippori Mincho", sans-serif;
}
-select,
-::picker(select) {
- appearance: none;
-}
-option {
- appearance: none;
-}
-::picker(select) {
- border: none;
-}
-
/* Button */
.button {
transition: all 150ms linear;
diff --git a/template/transaction/transaction.templ b/template/transaction/transaction.templ
index 5f5478f..cd13b30 100644
--- a/template/transaction/transaction.templ
+++ b/template/transaction/transaction.templ
@@ -33,7 +33,7 @@ templ EditTransaction(transaction *types.Transaction, accounts []*types.Account,
note string
// accountId string
// treasureChestId string
- value int64
+ value string
id string
cancelUrl string
@@ -43,7 +43,7 @@ templ EditTransaction(transaction *types.Transaction, accounts []*types.Account,
note = ""
// accountId = ""
// treasureChestId = ""
- value = 0
+ value = "0.00"
id = "new"
cancelUrl = "/empty"
@@ -52,7 +52,7 @@ templ EditTransaction(transaction *types.Transaction, accounts []*types.Account,
note = transaction.Note
// accountId = transaction.AccountId.String()
// treasureChestId = transaction.TreasureChestId.String()
- value = transaction.Value
+ value = displayBalance(transaction.Value)
id = transaction.Id.String()
cancelUrl = "/transaction/" + id
@@ -100,20 +100,19 @@ templ EditTransaction(transaction *types.Transaction, accounts []*types.Account,
}
-
-
-
-
@@ -172,12 +171,5 @@ templ TransactionItem(transaction *types.Transaction) {
func displayBalance(balance int64) string {
euros := float64(balance) / 100
- return fmt.Sprintf("%.2f €", euros)
-}
-
-func calculateTreasureChestClass(treasureChest *types.TreasureChest) string {
- if treasureChest.ParentId == uuid.Nil {
- return "font-bold"
- }
- return "ml-4"
+ return fmt.Sprintf("%.2f", euros)
}