From 2739fcb37decea22cc846662674cfc139ade8f1f Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 8 Feb 2017 22:54:41 +0200 Subject: [PATCH] Fix dashboard layout with multiple currencies and zero values --- resources/views/dashboard.blade.php | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index ff678fcbc494..bf1b1bdd16df 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -148,6 +148,15 @@ $('.currency').hide(); $('.currency_' + chartCurrencyId).show(); + + // add blank values to fix layout + var divs = ['revenue', 'expenses', 'outstanding'] + for (var i=0; i
-
+
{{ trans('texts.total_revenue') }} @@ -230,6 +239,9 @@ {{ Utils::formatMoney(0) }}
@endif +
{{ trans('texts.last_30_days') }} @@ -240,7 +252,7 @@
-
+
@if (count($expenses))
@@ -254,6 +266,9 @@ {{ Utils::formatMoney($item->value, $item->currency_id) }}
@endforeach +
@else
@@ -273,6 +288,9 @@ {{ Utils::formatMoney(0) }}
@endif +
@endif
@@ -284,7 +302,7 @@
-
+
{{ trans('texts.outstanding') }} @@ -303,6 +321,9 @@ {{ Utils::formatMoney(0) }}
@endif +
{{ trans('texts.last_30_days') }}