{% extends "./layout/default.twig" %} {% block breadcrumbs %} {{ Breadcrumbs.renderIfExists }} {% endblock %} {% block content %} {{ Form.open({'class' : 'form-horizontal','id' : 'store','url' : route('split.journal.from-store.post')}) }}
{{ ('split_intro_one_'~data.what)|_ }}
{{ ('split_intro_two_'~data.what)|_ }}
{% if data.what =='deposit' %} {{ trans(('firefly.split_intro_three_'~data.what), {total: 500|formatAmount, split_one: 425|formatAmount, split_two: 75|formatAmount})|raw }} {% else %} {{ trans(('firefly.split_intro_three_'~data.what), {total: 20|formatAmount, split_one: 15|formatAmount, split_two: 5|formatAmount})|raw }} {% endif %}
{{ ('split_table_intro_'~data.what)|_ }}
| {{ trans('list.split_number') }} | {{ trans('list.description') }}{% if data.what == 'withdrawal' or data.what == 'deposit' %} | {{ trans('list.destination') }}{% endif %} | {{ trans('list.amount') }}{% if data.what == 'withdrawal' %} | {{ trans('list.budget') }}{% endif %} | {{ trans('list.category') }}{% if data.what == 'transfer' %} | {{ trans('list.piggy_bank') }}{% endif %} | 
|---|---|---|---|---|---|---|
| #1 | {{ Form.input('text', 'description[]', data.description, {class: 'form-control'}) }}{% if data.what == 'withdrawal' %} | {{ Form.input('text', 'destination_account_name[]', data.destination_account_name, {class: 'form-control'}) }}{% endif %} {% if data.what == 'deposit' %} | {{ Form.select('destination_account_id[]', assetAccounts, data.destination_account_id, {class: 'form-control'}) }}{% endif %} | {{ Form.input('number', 'amount[]', data.amount, {class: 'form-control', autocomplete: 'off', step: 'any', min:'0.01'}) }}{% if data.what == 'withdrawal' %} | {{ Form.select('budget[]', budgets, data.budget_id, {class: 'form-control'}) }}{% endif %} | {{ Form.input('text', 'category[]', data.category, {class: 'form-control'}) }} |