mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-25 10:08:36 +02:00
feat(insights:category-explorer): add empty message when there's no data or no category selected
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% if account_data.labels %}
|
||||||
<div class="chart-container" style="position: relative; height:400px; width:100%" _="init call setupAccountChart() end">
|
<div class="chart-container" style="position: relative; height:400px; width:100%" _="init call setupAccountChart() end">
|
||||||
<canvas id="accountChart"></canvas>
|
<canvas id="accountChart"></canvas>
|
||||||
</div>
|
</div>
|
||||||
@@ -77,3 +78,6 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
{% else %}
|
||||||
|
<c-msg.empty title="{% translate "No information to display" %}"></c-msg.empty>
|
||||||
|
{% endif %}
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% if currency_data.labels %}
|
||||||
<div class="chart-container" style="position: relative; height:400px; width:100%"
|
<div class="chart-container" style="position: relative; height:400px; width:100%"
|
||||||
_="init call setupCurrencyChart() end">
|
_="init call setupCurrencyChart() end">
|
||||||
<canvas id="currencyChart"></canvas>
|
<canvas id="currencyChart"></canvas>
|
||||||
@@ -78,3 +79,6 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
{% else %}
|
||||||
|
<c-msg.empty title="{% translate "No information to display" %}"></c-msg.empty>
|
||||||
|
{% endif %}
|
||||||
|
|||||||
@@ -8,26 +8,27 @@
|
|||||||
|
|
||||||
<div class="row row-cols-1 row-cols-lg-2 gx-3 gy-3">
|
<div class="row row-cols-1 row-cols-lg-2 gx-3 gy-3">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="card">
|
<div class="card h-100">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
{% trans "Income/Expense by Account" %}
|
{% trans "Income/Expense by Account" %}
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div id="account-card" class="show-loading" hx-get="{% url 'category_sum_by_account' %}"
|
<div id="account-card" class="show-loading" hx-get="{% url 'category_sum_by_account' %}"
|
||||||
hx-trigger="updated from:window" hx-include="#category-form, #picker-form, #picker-type">
|
hx-trigger="updated from:window" hx-include="#category-form, #picker-form, #picker-type">
|
||||||
|
<c-msg.empty title="{% translate "No information to display" %}"></c-msg.empty>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="card">
|
<div class="card h-100">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
{% trans "Income/Expense by Currency" %}
|
{% trans "Income/Expense by Currency" %}
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div id="currency-card" class="show-loading" hx-get="{% url 'category_sum_by_currency' %}"
|
<div id="currency-card" class="show-loading" hx-get="{% url 'category_sum_by_currency' %}"
|
||||||
hx-trigger="updated from:window" hx-include="#category-form, #picker-form, #picker-type">
|
hx-trigger="updated from:window" hx-include="#category-form, #picker-form, #picker-type">
|
||||||
|
<c-msg.empty title="{% translate "No information to display" %}"></c-msg.empty>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user