From 7ffb48a87a2cbe0f1f40568154efafff2e6f01db Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 15 Aug 2015 21:42:45 +0200 Subject: [PATCH 01/10] New translations --- config/firefly.php | 4 +++- resources/lang/en/firefly.php | 1 + resources/lang/nl/firefly.php | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/firefly.php b/config/firefly.php index 5260493261..3b95d033bf 100644 --- a/config/firefly.php +++ b/config/firefly.php @@ -85,7 +85,9 @@ return [ [ 'asset' => 'Asset account', 'expense' => 'Expense account', - 'revenue' => 'Revenue account' + 'revenue' => 'Revenue account', + 'opening' => 'Initial balance account', + 'initial' => 'Initial balance account', ], 'shortNamesByFullName' => [ diff --git a/resources/lang/en/firefly.php b/resources/lang/en/firefly.php index 456e0ef9a1..fa38120cbc 100644 --- a/resources/lang/en/firefly.php +++ b/resources/lang/en/firefly.php @@ -25,6 +25,7 @@ return [ 'removed_amount' => 'Removed :amount', 'added_amount' => 'Added :amount', 'asset_account_role_help' => 'Any extra options resulting from your choice can be set later.', + 'Opening balance' => 'Opening balance', // tags 'store_new_tag' => 'Store new tag', diff --git a/resources/lang/nl/firefly.php b/resources/lang/nl/firefly.php index 1a1836f8da..aec6d31287 100644 --- a/resources/lang/nl/firefly.php +++ b/resources/lang/nl/firefly.php @@ -25,6 +25,7 @@ return [ 'removed_amount' => ':amount weggehaald', 'added_amount' => ':amount toegevoegd', 'asset_account_role_help' => 'Voorkeuren die voortkomen uit je keuze hier kan je later aangeven.', + 'Opening balance' => 'Startsaldo', // tags 'store_new_tag' => 'Sla tag op', From 7fbd0b2ffc4e31e31f618702c68235af2272e477 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 15 Aug 2015 21:44:29 +0200 Subject: [PATCH 02/10] Fixed some inconsistencies in the delete-form. --- resources/twig/accounts/delete.twig | 35 ++++++++++++++++------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/resources/twig/accounts/delete.twig b/resources/twig/accounts/delete.twig index 81b16c4b4b..3e730fec42 100644 --- a/resources/twig/accounts/delete.twig +++ b/resources/twig/accounts/delete.twig @@ -22,22 +22,27 @@ {{ trans('form.account_areYouSure', {'name': account.name}) }}

-

- {% if account.transactions|length > 0 %} - {{ Lang.choice('form.also_delete_transactions', account.transactions|length, {count: account.transactions|length}) }} - {% endif %}
- {% if account.piggyBanks|length > 0 %} - {{ Lang.choice('form.also_delete_piggyBanks', account.piggyBanks|length, {count: account.piggyBanks|length}) }} - {% endif %} -

+ {% if account.transactions|length > 0 or account.piggyBanks|length > 0 %} +

+ {% if account.transactions|length > 0 %} + {{ Lang.choice('form.also_delete_transactions', account.transactions|length, {count: account.transactions|length}) }} + {% endif %}
+ {% if account.piggyBanks|length > 0 %} + {{ Lang.choice('form.also_delete_piggyBanks', account.piggyBanks|length, {count: account.piggyBanks|length}) }} + {% endif %} +

+ {% endif %} + {% if account.transactions|length > 0 %} +

+ {{ 'save_transactions_by_moving'|_ }} +

-

- {{ 'save_transactions_by_moving'|_ }} -

- -

- {{ Form.select('move_account_before_delete', accountList, null, {class: 'form-control'}) }} -

+

+ {{ Form.select('move_account_before_delete', accountList, null, {class: 'form-control'}) }} +

+ {% else %} + + {% endif %}