wip: recurring transactions
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 41s
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 41s
This commit is contained in:
@@ -5,13 +5,13 @@ import "spend-sparrow/template/svg"
|
|||||||
import "spend-sparrow/types"
|
import "spend-sparrow/types"
|
||||||
|
|
||||||
templ TransactionRecurringItems(transactionsRecurring []*types.TransactionRecurring) {
|
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>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-left text-sm text-gray-500">Party</th>
|
<th class="text-sm text-gray-500">Party</th>
|
||||||
<th class="text-left text-sm text-gray-500">Description</th>
|
<th class="text-sm text-gray-500">Description</th>
|
||||||
<th class="text-right text-sm text-gray-500">Value (€)</th>
|
<th class="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">Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@@ -44,9 +44,9 @@ templ TransactionRecurringItem(transactionRecurring *types.TransactionRecurring)
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
if transactionRecurring.Value < 0 {
|
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 {
|
} 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>
|
||||||
<td class="flex gap-2">
|
<td class="flex gap-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user