diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php index b0d2efd35f..aceb221eac 100644 --- a/resources/lang/en_US/firefly.php +++ b/resources/lang/en_US/firefly.php @@ -967,4 +967,19 @@ return [ // sandstorm.io errors and messages: 'sandstorm_not_available' => 'This function is not available when you are using Firefly III within a Sandstorm.io environment.', + + // empty lists? instructions: + 'empty_accounts_title_asset' => 'Let\'s create an asset account!', + 'empty_accounts_intro_asset' => 'You have no asset accounts yet. Asset accounts are your main accounts: your checking account, savings account, shared account or even your credit card.', + 'empty_accounts_imperative_asset' => 'To start using Firefly III you must create at least one asset account. Let\'s do so now:', + 'empty_accounts_create_asset' => 'Create an asset account', + 'empty_accounts_title_expense' => 'Let\'s create an expense account!', + 'empty_accounts_intro_expense' => '', + 'empty_accounts_imperative_expense' => '', + 'empty_accounts_create_expense' => '', + 'empty_accounts_title_revenue' => 'Let\'s create a revenue account!', + 'empty_accounts_intro_revenue' => '', + 'empty_accounts_imperative_revenue' => '', + 'empty_accounts_create_revenue' => '', + ]; diff --git a/resources/views/accounts/index.twig b/resources/views/accounts/index.twig index 84f653aacb..102627d313 100644 --- a/resources/views/accounts/index.twig +++ b/resources/views/accounts/index.twig @@ -5,32 +5,38 @@ {% endblock %} {% block content %} + {% if accounts.count > 0 %} +
+
+
+
+

{{ subTitle }}

-
-
-
-
-

{{ subTitle }}

- - -
- +
+ {% include 'list.accounts' %} +
-
- {% include 'list.accounts' %} -
-
+ {% else %} + {% include 'empty.accounts' with {what: what} %} + {% endif %} {% endblock %} {% block styles %} diff --git a/resources/views/empty/accounts.twig b/resources/views/empty/accounts.twig new file mode 100644 index 0000000000..1f027086ac --- /dev/null +++ b/resources/views/empty/accounts.twig @@ -0,0 +1,23 @@ +
+
+
+
+

{{ ('empty_accounts_title_'~what)|_ }}

+
+ +
+

+ {{ ('empty_accounts_intro_'~what)|_ }} +

+

+ {{ ('empty_accounts_imperative_'~what)|_ }} + +

+

+ {{ ('empty_accounts_create_'~what)|_ }} +

+
+ +
+
+
\ No newline at end of file