wip: recurring transactions
Some checks failed
Build Docker Image / Build-Docker-Image (push) Has been cancelled
Some checks failed
Build Docker Image / Build-Docker-Image (push) Has been cancelled
This commit is contained in:
@@ -68,10 +68,14 @@ templ EditTransactionRecurring(transactionRecurring *types.TransactionRecurring,
|
||||
party := ""
|
||||
description := ""
|
||||
value := "0.00"
|
||||
intervalMonth := "1"
|
||||
active := false
|
||||
if transactionRecurring == nil {
|
||||
id = "new"
|
||||
cancelUrl = "/empty"
|
||||
} else {
|
||||
intervalMonth = fmt.Sprintf("%d", transactionRecurring.IntervalMonths)
|
||||
active = transactionRecurring.Active
|
||||
party = transactionRecurring.Party
|
||||
description = transactionRecurring.Description
|
||||
value = displayBalance(transactionRecurring.Value)
|
||||
@@ -88,6 +92,23 @@ templ EditTransactionRecurring(transactionRecurring *types.TransactionRecurring,
|
||||
class="text-xl flex justify-end gap-4 items-center"
|
||||
>
|
||||
<div class="grid grid-cols-[auto_auto] items-center gap-4 ">
|
||||
<div class="col-span-2">
|
||||
<input
|
||||
name="active"
|
||||
id="active"
|
||||
type="checkbox"
|
||||
value={ active }
|
||||
class="bg-white input"
|
||||
/>
|
||||
<label for="active" class="select-none text-sm text-gray-800">Active</label>
|
||||
</div>
|
||||
<label for="interval-month" class="text-sm text-gray-500">Interval Month</label>
|
||||
<input
|
||||
name="interval-month"
|
||||
type="number"
|
||||
value={ intervalMonth }
|
||||
class="bg-white input"
|
||||
/>
|
||||
<label for="party" class="text-sm text-gray-500">Party</label>
|
||||
<input
|
||||
name="party"
|
||||
|
||||
Reference in New Issue
Block a user