wip: recurring transactions
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 41s

This commit is contained in:
2025-05-23 23:14:32 +02:00
parent 96b1ec2264
commit e70d90c60d

View File

@@ -5,13 +5,13 @@ import "spend-sparrow/template/svg"
import "spend-sparrow/types"
templ TransactionRecurringItems(transactionsRecurring []*types.TransactionRecurring) {
<table id="transaction-recurring-items" class="gap-2 w-full my-6 border-collapse border-spacing-20">
<table id="transaction-recurring-items border-spacing-96" class="p-40 w-full">
<thead>
<tr>
<th class="text-left text-sm text-gray-500">Party</th>
<th class="text-left text-sm text-gray-500">Description</th>
<th class="text-right text-sm text-gray-500">Value (€)</th>
<th class="text-right text-sm text-gray-500">Actions</th>
<th class="text-sm text-gray-500">Party</th>
<th class="text-sm text-gray-500">Description</th>
<th class="text-sm text-gray-500">Value (€)</th>
<th class="text-sm text-gray-500">Actions</th>
</tr>
</thead>
<tbody>
@@ -44,9 +44,9 @@ templ TransactionRecurringItem(transactionRecurring *types.TransactionRecurring)
</td>
<td>
if transactionRecurring.Value < 0 {
<p class="mr-8 min-w-22 text-right text-red-700">{ displayBalance(transactionRecurring.Value)+" €" }</p>
<p class="mr-8 min-w-22 text-red-700">{ displayBalance(transactionRecurring.Value)+" €" }</p>
} else {
<p class="mr-8 w-22 text-right text-green-700">{ displayBalance(transactionRecurring.Value)+" €" }</p>
<p class="mr-8 min-w-22 text-green-700">{ displayBalance(transactionRecurring.Value)+" €" }</p>
}
</td>
<td class="flex gap-2">