feat: add transaction type coloring and note to installments table

This commit is contained in:
Herculino Trotta
2024-11-30 03:29:18 -03:00
parent 59d8dc7290
commit 0d3c0b904e

View File

@@ -7,7 +7,7 @@
{% endif %}
{% if installment_plans %}
<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>
@@ -61,7 +61,12 @@
_="install prompt_swal"><i class="fa-solid fa-trash fa-fw"></i></a>
</div>
</td>
<td class="col">{{ installment_plan.description }}</td>
<td class="col">
<div class="{% if installment_plan.type == 'EX' %}tw-text-red-400{% else %}tw-text-green-400{% endif %}">
{{ installment_plan.description }}
</div>
<div class="tw-text-sm tw-text-gray-400">{{ installment_plan.notes|linebreaks }}</div>
</td>
</tr>
{% endfor %}
</tbody>