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

{{ 'mandatory_for_recurring'|_ }}

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

{{ 'optional_for_recurring'|_ }}

{{ ExpandedForm.textarea('recurring_description') }} {# only correct way to do active checkbox #} {{ ExpandedForm.checkbox('active', 1) }} {{ ExpandedForm.checkbox('apply_rules',1) }}
{# 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') }} {# transaction information (mandatory) #} {{ ExpandedForm.currencyList('transaction_currency_id', defaultCurrency.id) }} {{ ExpandedForm.amountNoCurrency('amount', []) }} {# source account if withdrawal, or if transfer: #} {{ ExpandedForm.activeLongAccountList('source_id', null, {label: trans('form.asset_source_account')}) }} {# source account name for deposits: #} {{ ExpandedForm.text('source_name', null, {label: trans('form.revenue_account')}) }} {# destination if deposit or transfer: #} {{ ExpandedForm.activeLongAccountList('destination_id', null, {label: trans('form.asset_destination_account')} ) }} {# destination account name for withdrawals #} {{ ExpandedForm.text('destination_name', null, {label: trans('form.expense_account')}) }}
{# optional transaction information #}

{{ 'optional_for_transaction'|_ }}

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

{{ 'options'|_ }}

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

{{ 'expected_repetitions'|_ }}

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