Fix old bug.

This commit is contained in:
James Cole 2016-04-18 19:55:48 +02:00
parent a6f3e61520
commit 4b80e46d26
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 9 additions and 1 deletions

View File

@ -69,6 +69,7 @@ return [
'warning_much_data' => ':days days of data may take a while to load.',
'registered' => 'You have registered successfully!',
'search' => 'Search',
'no_budget_pointer' => 'You seem to have no budgets yet. You should create some on the <a href="/budgets">budgets</a>-page. Budgets can help you keep track of expenses.',
// account confirmation:
'confirm_account_header' => 'Please confirm your account',

View File

@ -63,7 +63,14 @@
</div>
<div class="box-body">
<!-- BUDGET ONLY WHEN CREATING A WITHDRAWAL -->
{{ ExpandedForm.select('budget_id',budgets,0) }}
{% if budgets|length > 0 %}
{{ ExpandedForm.select('budget_id',budgets,0) }}
{% else %}
{{ ExpandedForm.select('budget_id',budgets,0, {helpText: trans('firefly.no_budget_pointer')}) }}
{% endif %}
<!-- CATEGORY ALWAYS -->
{{ ExpandedForm.text('category') }}