| 1 |
<tbody id="transactions-tbody"> |
| 2 |
{% for tx in transactions %} |
| 3 |
<tr> |
| 4 |
<td>{{ tx.date }}</td> |
| 5 |
<td>{{ tx.tx_type }}</td> |
| 6 |
<td>{{ tx.description }}</td> |
| 7 |
<td class="{% if tx.is_incoming %}amount-in{% else %}amount-out{% endif %}">{{ tx.amount }}</td> |
| 8 |
<td><span class="badge {{ tx.status|lowercase }}">{{ tx.status }}</span></td> |
| 9 |
<td>{{ tx.details }}</td> |
| 10 |
</tr> |
| 11 |
{% endfor %} |
| 12 |
{% if transactions.is_empty() %} |
| 13 |
<tr> |
| 14 |
<td colspan="6" class="table-empty-row">No transactions found</td> |
| 15 |
</tr> |
| 16 |
{% endif %} |
| 17 |
</tbody> |
| 18 |
|