{% extends './layout/default' %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, recurrence) }} {% endblock %} {% block content %}
{# row with recurrence information #}
{# mandatory recurrence stuff #}

{{ 'mandatory_for_recurring'|_ }}

{{ ExpandedForm.text('title', array.title) }} {{ ExpandedForm.date('first_date',array.first_date, {helpText: trans('firefly.help_first_date_no_past')}) }} {{ ExpandedForm.select('repetition_type', [], null, {helpText: trans('firefly.change_date_other_options')}) }} {{ ExpandedForm.integer('skip', array.repetitions[0].skip) }} {{ ExpandedForm.select('weekend', weekendResponses, array.repetitions[0].weekend, {helpText: trans('firefly.help_weekend')}) }} {{ ExpandedForm.select('repetition_end', repetitionEnds, repetitionEnd) }} {{ ExpandedForm.date('repeat_until',array.repeat_until) }} {{ ExpandedForm.integer('repetitions', array.nr_of_repetitions) }} {# calendar in popup #}
{# optional recurrence stuff #}

{{ 'optional_for_recurring'|_ }}

{{ ExpandedForm.textarea('recurring_description',array.description) }} {# only correct way to do active checkbox #} {{ ExpandedForm.checkbox('active', 1, preFilled.active) }} {{ ExpandedForm.checkbox('apply_rules', 1, preFilled.apply_rules) }} {{ ExpandedForm.file('attachments[]', {'multiple': 'multiple','helpText': trans('firefly.upload_max_file_size', {'size': uploadSize|filesize}) }) }}
{# mandatory transaction information #}

{{ 'mandatory_for_transaction'|_ }}

{{ 'mandatory_fields_for_tranaction'|_ }}

{# three buttons to distinguish type of transaction #}
{# end of three buttons #} {{ ExpandedForm.text('transaction_description', array.transactions[0].description) }} {# transaction information (mandatory) #} {{ CurrencyForm.currencyList('transaction_currency_id', array.transactions[0].currency_id) }} {{ ExpandedForm.amountNoCurrency('amount', array.transactions[0].amount) }} {# source account if withdrawal, or if transfer: #} {{ AccountForm.longAccountList('source_id', array.transactions[0].source_id, {label: trans('form.asset_source_account')}) }} {# NEW for deposits, a drop down with revenue accounts, loan debt cash and mortgage #} {{ AccountForm.activeDepositDestinations('deposit_source_id', preFilled.deposit_source_id, {label: trans('form.deposit_source_id')}) }} {# destination if deposit or transfer: #} {{ AccountForm.longAccountList('destination_id', array.transactions[0].destination_id, {label: trans('form.asset_destination_account')} ) }} {# NEW for withdrawals, also a drop down with expense accounts, loans, debts, mortgages or (cash). #} {{ AccountForm.activeWithdrawalDestinations('withdrawal_destination_id', preFilled.withdrawal_destination_id, {label: trans('form.withdrawal_destination_id')}) }}
{# optional transaction information #}

{{ 'optional_for_transaction'|_ }}

{# transaction information (optional) #} {{ CurrencyForm.currencyListEmpty('foreign_currency_id', array.transactions[0].foreign_currency_id) }} {{ ExpandedForm.amountNoCurrency('foreign_amount', array.transactions[0].foreign_amount) }} {# BUDGET ONLY WHEN CREATING A WITHDRAWAL #} {% if budgets|length > 1 %} {{ ExpandedForm.select('budget_id', budgets, array.transactions[0].budget_id) }} {% else %} {{ ExpandedForm.select('budget_id', budgets, array.transactions[0].budget_id, {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }} {# budgets #} {% endif %} {# CATEGORY ALWAYS #} {{ ExpandedForm.text('category',array.transactions[0].category_name) }} {# BILL ONLY WHEN CREATING A WITHDRAWAL #} {% if bills|length > 1 %} {{ ExpandedForm.select('bill_id', bills, array.transactions[0].bill_id) }} {% else %} {{ ExpandedForm.select('bill_id', bills, array.transactions[0].bill_id, {helpText: trans('firefly.no_bill_pointer', {link: route('bills.index')})}) }} {% endif %} {# TAGS #} {{ ExpandedForm.text('tags', array.transactions[0].tags) }} {# RELATE THIS TRANSFER TO A PIGGY BANK #} {{ PiggyBankForm.piggyBankList('piggy_bank_id',array.transactions[0].piggy_bank_id) }}
{# row with submit stuff. #}

{{ 'options'|_ }}

{{ ExpandedForm.optionsList('update','recurrence') }}
{#

{{ 'expected_repetitions'|_ }}

Here.
#}
{# calendar modal #} {% endblock %} {% block scripts %} {% endblock %} {% block styles %} {% endblock %}