From 035dc8ceb4d2fa7b1b7df1d20d217247950024b7 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 14 Aug 2018 20:08:07 +0200 Subject: [PATCH] Fix #1609 --- resources/lang/en_US/firefly.php | 2 +- resources/views/recurring/create.twig | 2 +- resources/views/recurring/edit.twig | 2 +- resources/views/transactions/single/create.twig | 2 +- resources/views/transactions/single/edit.twig | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php index 933466992f..a56b92ba7c 100644 --- a/resources/lang/en_US/firefly.php +++ b/resources/lang/en_US/firefly.php @@ -90,7 +90,7 @@ return [ 'warning_much_data' => ':days days of data may take a while to load.', 'registered' => 'You have registered successfully!', 'Default asset account' => 'Default asset account', - 'no_budget_pointer' => 'You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.', + 'no_budget_pointer' => 'You seem to have no budgets yet. You should create some on the budgets-page. Budgets can help you keep track of expenses.', 'Savings account' => 'Savings account', 'Credit card' => 'Credit card', 'source_accounts' => 'Source account(s)', diff --git a/resources/views/recurring/create.twig b/resources/views/recurring/create.twig index 1c098a5d87..578a796afc 100644 --- a/resources/views/recurring/create.twig +++ b/resources/views/recurring/create.twig @@ -118,7 +118,7 @@ {% if budgets|length > 1 %} {{ ExpandedForm.select('budget_id', budgets, null) }} {% else %} - {{ ExpandedForm.select('budget_id', budgets, null, {helpText: trans('firefly.no_budget_pointer')}) }} + {{ ExpandedForm.select('budget_id', budgets, null, {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }} {% endif %} {# CATEGORY ALWAYS #} diff --git a/resources/views/recurring/edit.twig b/resources/views/recurring/edit.twig index 59fc8e6e16..11197d98db 100644 --- a/resources/views/recurring/edit.twig +++ b/resources/views/recurring/edit.twig @@ -128,7 +128,7 @@ {% if budgets|length > 1 %} {{ ExpandedForm.select('budget_id', budgets, budgetId) }} {##} {% else %} - {{ ExpandedForm.select('budget_id', budgets, budgetId, {helpText: trans('firefly.no_budget_pointer')}) }} + {{ ExpandedForm.select('budget_id', budgets, budgetId, {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }} {#budgets#} {% endif %} diff --git a/resources/views/transactions/single/create.twig b/resources/views/transactions/single/create.twig index 2419f000f2..fdb718ca40 100644 --- a/resources/views/transactions/single/create.twig +++ b/resources/views/transactions/single/create.twig @@ -78,7 +78,7 @@ {% if budgets|length > 1 %} {{ ExpandedForm.select('budget_id', budgets, null) }} {% else %} - {{ ExpandedForm.select('budget_id', budgets, null, {helpText: trans('firefly.no_budget_pointer')}) }} + {{ ExpandedForm.select('budget_id', budgets, null, {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }} {% endif %} {# CATEGORY ALWAYS #} diff --git a/resources/views/transactions/single/edit.twig b/resources/views/transactions/single/edit.twig index 92b27629f6..a43f916046 100644 --- a/resources/views/transactions/single/edit.twig +++ b/resources/views/transactions/single/edit.twig @@ -85,7 +85,7 @@ {% if budgetList|length > 1 %} {{ ExpandedForm.select('budget_id', budgetList, data['budget_id']) }} {% else %} - {{ ExpandedForm.select('budget_id', budgetList, data['budget_id'], {helpText: trans('firefly.no_budget_pointer')}) }} + {{ ExpandedForm.select('budget_id', budgetList, data['budget_id'], {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }} {% endif %} {% endif %} {{ ExpandedForm.text('category',data['category']) }}