feat: add transaction type coloring and note to recurring transaction table

This commit is contained in:
Herculino Trotta
2024-11-30 02:44:56 -03:00
parent 28096cd490
commit 4b31e3b1f0

View File

@@ -9,7 +9,7 @@
{% endif %}
{% if recurring_transactions %}
<div class="table-responsive">
<table class="table table-hover">
<table class="table table-hover align-middle">
<thead>
<tr>
<th scope="col" class="col-auto"></th>
@@ -97,7 +97,13 @@
_="install prompt_swal"><i class="fa-solid fa-trash fa-fw"></i></a>
</div>
</td>
<td class="col">{{ recurring_transaction.description }}</td>
<td class="col">
<div class="{% if recurring_transaction.type == 'EX' %}tw-text-red-400{% else %}tw-text-green-400{% endif %}">
{{ recurring_transaction.description }}
</div>
<div class="tw-text-sm tw-text-gray-400">{{ recurring_transaction.notes }}</div>
</td>
</tr>
{% endfor %}
</tbody>