Added empty box for bills as well.

This commit is contained in:
James Cole
2017-02-23 07:30:08 +01:00
parent 563c668e3f
commit fc36f9cd8c
3 changed files with 72 additions and 63 deletions

View File

@@ -1006,6 +1006,14 @@ return [
'no_transactions_intro_transfers' => 'You have no transfers yet. When you move money between asset accounts, it is recorded as a transfer.',
'no_transactions_imperative_transfers' => 'Have you moved some money around? Then you should write it down:',
'no_transactions_create_transfers' => 'Create a new transfer',
'no_piggies_title_default' => 'Let\'s create a piggy bank',
'no_piggies_intro_default' => 'You have no piggy banks yet. You can create piggy banks to divide your savings and keep track of what you\'re saving up for.',
'no_piggies_imperative_default' => 'Do you have things you\'re saving money for? Create a piggy bank and keep track:',
'no_piggies_create_default' => 'Create a new piggy bank',
'no_bills_title_default' => 'Let\'s create a bill',
'no_bills_intro_default' => 'You have no bills yet. You can create bills to keep track of regular expenses, like your rent of insurance.',
'no_bills_imperative_default' => 'Do you have such regular bills? Create a bill and keep track of your payments:',
'no_bills_create_default' => 'Create a new bill',
];

View File

@@ -5,6 +5,9 @@
{% endblock %}
{% block content %}
{% if bills.count == 0 %}
{% include 'partials.empty' with {what: 'default', type: 'bills',route: route('bills.create')} %}
{% else %}
<div class="row">
<div class="col-lg-12 col-sm-12 col-md-12">
<div class="box">
@@ -27,11 +30,5 @@
</div>
</div>
</div>
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="css/bootstrap-sortable.css" type="text/css" media="all"/>
{% endblock %}
{% block scripts %}
<script type="text/javascript" src="js/lib/bootstrap-sortable.js"></script>
{% endif %}
{% endblock %}

View File

@@ -5,6 +5,9 @@
{% endblock %}
{% block content %}
{% if piggyBanks.count == 0 %}
{% include 'partials.empty' with {what: 'default', type: 'piggies',route: route('piggy-banks.create')} %}
{% else %}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="box">
@@ -53,6 +56,7 @@
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% block scripts %}
<script src="js/lib/jquery-ui.min.js" type="text/javascript"></script>