Move template around

This commit is contained in:
James Cole 2017-02-23 07:02:28 +01:00
parent 1ac3f7af3b
commit b3df1f3d26
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
4 changed files with 13 additions and 9 deletions

View File

@ -974,12 +974,12 @@ return [
'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_intro_expense' => 'You have no expense accounts yet. Expense accounts are the places where you spend money, such as shops and supermarkets.',
'empty_accounts_imperative_expense' => 'Expense accounts are created automatically when you create transactions, but you can create one manually too, if you want.',
'empty_accounts_create_expense' => 'Create an expense account',
'empty_accounts_title_revenue' => 'Let\'s create a revenue account!',
'empty_accounts_intro_revenue' => '',
'empty_accounts_imperative_revenue' => '',
'empty_accounts_create_revenue' => '',
'empty_accounts_intro_revenue' => 'You have no revenue accounts yet. Revenue accounts are the places where you receive money from, such as your employer.',
'empty_accounts_imperative_revenue' => 'Expense accounts are created automatically when you create transactions, but you can create one manually too, if you want.',
'empty_accounts_create_revenue' => 'Create a revenue account',
];

View File

@ -35,7 +35,7 @@
</div>
</div>
{% else %}
{% include 'empty.accounts' with {what: what} %}
{% include 'partials.empty' with {what: what, type: 'accounts',route: route('accounts.create', [what])} %}
{% endif %}
{% endblock %}

View File

@ -71,7 +71,7 @@
</p>
</div>
</div>
{% if budgets.count > 0 and inactive.count > 0 %}
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'createBudget'|_ }}</h3>
@ -80,9 +80,13 @@
<a href="{{ route('budgets.create') }}" class="btn btn-success pull-right">{{ 'createBudget'|_ }}</a>
</div>
</div>
{% endif %}
</div>
</div>
{% if budgets.count == 0 and inactive.count == 0 %}
{% include 'empty.budgets' %}
{% endif %}
<div class="row">
{% for budget in budgets %}
<div class="col-lg-4 col-sm-6 col-md-6">

View File

@ -14,7 +14,7 @@
</p>
<p style="text-align: center;">
<a class="btn btn-lg btn-success" href="{{ route('accounts.create', ['asset']) }}">{{ ('empty_accounts_create_'~what)|_ }}</a>
<a class="btn btn-lg btn-success" href="{{ route('accounts.create', [what]) }}">{{ ('empty_accounts_create_'~what)|_ }}</a>
</p>
</div>