diff --git a/resources/views/split/journals/edit.twig b/resources/views/split/journals/edit.twig new file mode 100644 index 0000000000..e62198f22c --- /dev/null +++ b/resources/views/split/journals/edit.twig @@ -0,0 +1,196 @@ +{% extends "./layout/default.twig" %} + +{% block breadcrumbs %} + {{ Breadcrumbs.renderIfExists }} +{% endblock %} +{% block content %} + {{ Form.model(journal, {'class' : 'form-horizontal','id' : 'update','url' : route('split.journal.update',journal.id) } ) }} + + + + + + {% if errors.all()|length > 0 %} +
+
+
+
+

{{ 'errors'|_ }}

+
+ +
+
+
+
    + {% for key, err in errors.all() %} +
  • {{ err }}
  • + {% endfor %} +
+
+
+
+
+ {% endif %} +
+
+
+
+

{{ 'transaction_meta_data'|_ }}

+ +
+ +
+
+
+ {{ ExpandedForm.text('journal_description') }} + {{ ExpandedForm.select('journal_currency_id', currencies, journal.transaction_currency_id) }} + {{ ExpandedForm.staticText('journal_amount', amount|formatAmount ) }} + + + {% if what == 'withdrawal' or what == 'transfer' %} + {{ ExpandedForm.staticText('journal_asset_source_account', assetAccounts[sourceAccounts.first.id]) }} + + {% endif %} + + {% if what == 'deposit' %} + {{ ExpandedForm.staticText('revenue_account', sourceAccounts.first.name) }} + + {% endif %} + + {% if what == 'transfer' %} + {{ ExpandedForm.staticText('asset_destination_account', assetAccounts[sourceAccounts.first.id]) }} + + {% endif %} +
+
+
+
+
+
+

{{ 'transaction_dates'|_ }}

+ +
+ +
+
+
+ {{ ExpandedForm.date('date', journal.date) }} + + {{ ExpandedForm.date('interest_date', journal.interest_date) }} + + {{ ExpandedForm.date('book_date', journal.book_date) }} + + {{ ExpandedForm.date('process_date', journal.process_date) }} +
+
+
+
+
+
+
+
+

{{ 'splits'|_ }}

+ +
+ +
+
+
+ + + + + + + + + + {% if data.what == 'withdrawal' or data.what == 'deposit' %} + + {% endif %} + + {% if data.what == 'withdrawal' %} + + {% endif %} + + {% if data.what == 'transfer' %} + + {% endif %} + + + + {% for index, descr in data.description %} + + + + + + {% if data.what == 'withdrawal' %} + + {% endif %} + + + {% if data.what == 'deposit' %} + + {% endif %} + + + + {% if data.what == 'withdrawal' %} + + {% endif %} + + {% if data.what == 'transfer' %} + + {% endif %} + + {% endfor %} + +
{{ trans('list.split_number') }}{{ trans('list.description') }}{{ trans('list.destination') }}{{ trans('list.amount') }}{{ trans('list.budget') }}{{ trans('list.category') }}{{ trans('list.piggy_bank') }}
#{{ loop.index }} + + + + + {{ Form.select('destination_account_id[]', assetAccounts, data.destination_account_id[index], {class: 'form-control'}) }} + + + + {{ Form.select('budget_id[]', budgets, data.budget_id[index], {class: 'form-control'}) }} + + + + {{ Form.select('piggy_bank_id[]', piggyBanks, data.piggy_bank_id[index], {class: 'form-control'}) }} +
+

+
+ {{ 'add_another_split'|_ }} +

+

+ +

+
+
+
+
+ + +{% endblock %} +{% block scripts %} + + + + +{% endblock %} +{% block styles %} +{% endblock %}