From ef97c3b42d62bbe138c193d3095c6774a15860b0 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 29 Mar 2016 15:33:09 +0200 Subject: [PATCH] Some new help text for bills. #207 --- resources/lang/en_US/firefly.php | 1 + resources/views/bills/create.twig | 2 +- resources/views/bills/edit.twig | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php index f8c12fb411..b1089f3a13 100644 --- a/resources/lang/en_US/firefly.php +++ b/resources/lang/en_US/firefly.php @@ -465,6 +465,7 @@ return [ 'stored_new_bill' => 'Stored new bill ":name"', 'cannot_scan_inactive_bill' => 'Inactive bills cannot be scanned.', 'rescanned_bill' => 'Rescanned everything.', + 'bill_date_little_relevance' => 'The only part of this date used by Firefly is the day. It is only useful when your bill arrives at exactly the same date every month. If the payment date of your bills varies, simply use the first of the month.', // accounts: 'details_for_asset' => 'Details for asset account ":name"', diff --git a/resources/views/bills/create.twig b/resources/views/bills/create.twig index fd888c257d..2cbc1f455c 100644 --- a/resources/views/bills/create.twig +++ b/resources/views/bills/create.twig @@ -19,7 +19,7 @@ {{ ExpandedForm.tags('match') }} {{ ExpandedForm.amount('amount_min') }} {{ ExpandedForm.amount('amount_max') }} - {{ ExpandedForm.date('date',phpdate('Y-m-d')) }} + {{ ExpandedForm.date('date',phpdate('Y-m-d'), {helpText: trans('firefly.bill_date_little_relevance')}) }} {{ ExpandedForm.select('repeat_freq',periods,'monthly') }} diff --git a/resources/views/bills/edit.twig b/resources/views/bills/edit.twig index 94c4add246..408f97ff27 100644 --- a/resources/views/bills/edit.twig +++ b/resources/views/bills/edit.twig @@ -21,7 +21,7 @@ {{ ExpandedForm.tags('match') }} {{ ExpandedForm.amount('amount_min') }} {{ ExpandedForm.amount('amount_max') }} - {{ ExpandedForm.date('date',bill.date.format('Y-m-d')) }} + {{ ExpandedForm.date('date',bill.date.format('Y-m-d'), {helpText: trans('firefly.bill_date_little_relevance')}) }} {{ ExpandedForm.select('repeat_freq',periods) }}