feat: add empty message for all management pages

This commit is contained in:
Herculino Trotta
2024-11-04 21:44:06 -03:00
parent d4006264be
commit 395578e558
9 changed files with 37 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
</div>
<div class="border p-3 rounded-3 table-responsive">
{% if account_groups %}
<table class="table table-hover">
<thead>
<tr>
@@ -52,5 +53,8 @@
{% endfor %}
</tbody>
</table>
{% else %}
<c-msg.empty title="{% translate "No account groups" %}" :remove-padding="True"></c-msg.empty>
{% endif %}
</div>
</div>

View File

@@ -15,6 +15,7 @@
</div>
<div class="border p-3 rounded-3 table-responsive">
{% if accounts %}
<table class="table table-hover">
<thead>
<tr>
@@ -61,5 +62,8 @@
{% endfor %}
</tbody>
</table>
{% else %}
<c-msg.empty title="{% translate "No accounts" %}" :remove-padding="True"></c-msg.empty>
{% endif %}
</div>
</div>

View File

@@ -15,6 +15,7 @@
</div>
<div class="border p-3 rounded-3 table-responsive">
{% if categories %}
<table class="table table-hover">
<thead>
<tr>
@@ -56,5 +57,8 @@
{% endfor %}
</tbody>
</table>
{% else %}
<c-msg.empty title="{% translate "No categories" %}" :remove-padding="True"></c-msg.empty>
{% endif %}
</div>
</div>

View File

@@ -15,6 +15,7 @@
</div>
<div class="border p-3 rounded-3 table-responsive">
{% if currencies %}
<table class="table table-hover">
<thead>
<tr>
@@ -54,5 +55,8 @@
{% endfor %}
</tbody>
</table>
{% else %}
<c-msg.empty title="{% translate "No currencies" %}" :remove-padding="True"></c-msg.empty>
{% endif %}
</div>
</div>

View File

@@ -5,6 +5,7 @@
{% else %}
<div class="card-body show-loading" hx-get="{% url 'exchange_rates_list_pair' %}" hx-trigger="updated from:window" hx-swap="outerHTML">
{% endif %}
{% if exchange_rates %}
<div class="table-responsive">
<table class="table table-hover">
<thead>
@@ -50,4 +51,7 @@
</tbody>
</table>
</div>
{% else %}
<c-msg.empty title="{% translate "No exchange rates" %}" :remove-padding="True"></c-msg.empty>
{% endif %}
</div>

View File

@@ -5,6 +5,7 @@
{% else %}
<div class="card-body show-loading" hx-get="{% url 'finished_installment_plans_list' %}" hx-trigger="updated from:window" hx-swap="outerHTML">
{% endif %}
{% if installment_plans %}
<div class="table-responsive">
<table class="table table-hover">
<thead>
@@ -66,4 +67,7 @@
</tbody>
</table>
</div>
{% else %}
<c-msg.empty title="{% translate "No installment plans" %}" :remove-padding="True"></c-msg.empty>
{% endif %}
</div>

View File

@@ -15,6 +15,7 @@
</div>
<div class="border p-3 rounded-3 table-responsive">
{% if recurring_transactions %}
<table class="table table-hover">
<thead>
<tr>
@@ -86,5 +87,9 @@
{% endfor %}
</tbody>
</table>
{% else %}
<c-msg.empty title="{% translate "No recurring transactions" %}" :remove-padding="True"></c-msg.empty>
{% endif %}
</div>
</div>

View File

@@ -15,6 +15,7 @@
</div>
<div class="border p-3 rounded-3 table-responsive">
{% if transaction_rules %}
<table class="table table-hover">
<thead>
<tr>
@@ -65,5 +66,8 @@
{% endfor %}
</tbody>
</table>
{% else %}
<c-msg.empty title="{% translate "No rules" %}" :remove-padding="True"></c-msg.empty>
{% endif %}
</div>
</div>

View File

@@ -15,6 +15,7 @@
</div>
<div class="border p-3 rounded-3 table-responsive">
{% if tags %}
<table class="table table-hover">
<thead>
<tr>
@@ -52,5 +53,8 @@
{% endfor %}
</tbody>
</table>
{% else %}
<c-msg.empty title="{% translate "No tags" %}" :remove-padding="True"></c-msg.empty>
{% endif %}
</div>
</div>