{% extends "./layout/default" %} {% block breadcrumbs %} {{ Breadcrumbs.render(Route.getCurrentRoute.getName, recurrence) }} {% endblock %} {% block content %} {{ Form.model(recurrence, {'class' : 'form-horizontal','enctype': 'multipart/form-data','id' : 'update','url' : route('recurring.update', recurrence.id)}) }} {# row with recurrence information #}
{# mandatory recurrence stuff #}

{{ 'mandatory_for_recurring'|_ }}

{{ ExpandedForm.text('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.number('skip', array.recurrence_repetitions[0].repetition_skip) }} {{ ExpandedForm.select('weekend', weekendResponses, array.recurrence_repetitions[0].weekend, {helpText: trans('firefly.help_weekend')}) }} {{ ExpandedForm.select('repetition_end', repetitionEnds, repetitionEnd) }} {{ ExpandedForm.date('repeat_until',array.repeat_until) }} {{ ExpandedForm.number('repetitions', array.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) }}
{# 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) #} {{ ExpandedForm.currencyList('transaction_currency_id', array.transactions[0].currency_id) }} {{ ExpandedForm.amountNoCurrency('amount', array.transactions[0].amount) }} {# source account if withdrawal, or if transfer: #} {{ ExpandedForm.longAccountList('source_id', array.transactions[0].source_id, {label: trans('form.asset_source_account')}) }} {# source account name for deposits: #} {{ ExpandedForm.text('source_name', array.transactions[0].source_name, {label: trans('form.revenue_account')}) }} {# destination if deposit or transfer: #} {{ ExpandedForm.longAccountList('destination_id', array.transactions[0].destination_id, {label: trans('form.asset_destination_account')} ) }} {# destination account name for withdrawals #} {{ ExpandedForm.text('destination_name', array.transactions[0].destination_name, {label: trans('form.expense_account')}) }}
{# optional transaction information #}

{{ 'optional_for_transaction'|_ }}

{# transaction information (optional) #} {{ ExpandedForm.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 #} {% set budgetId = 0 %} {% set categoryName = '' %} {% for metaValue in array.transactions[0].meta %} {% if metaValue.name == 'budget_id' %} {% set budgetId = metaValue.value %} {% endif %} {% if metaValue.name == 'category_name' %} {% set categoryName = metaValue.value %} {% endif %} {% endfor %} {% if budgets|length > 1 %} {{ ExpandedForm.select('budget_id', budgets, budgetId) }} {##} {% else %} {{ ExpandedForm.select('budget_id', budgets, budgetId, {helpText: trans('firefly.no_budget_pointer', {link: route('budgets.index')})}) }} {#budgets#} {% endif %} {# CATEGORY ALWAYS #} {{ ExpandedForm.text('category',categoryName) }} {# TAGS #} {% set tags = '' %} {% set piggyBankId = 0 %} {% for metaValue in array.meta %} {% if metaValue.name == 'tags' %} {% set tags = metaValue.value %} {% endif %} {% if metaValue.name == 'piggy_bank_id' %} {% set piggyBankId = metaValue.value %} {% endif %} {% endfor %} {{ ExpandedForm.text('tags', tags) }} {# RELATE THIS TRANSFER TO A PIGGY BANK #} {{ ExpandedForm.piggyBankList('piggy_bank_id',piggyBankId) }}
{# row with submit stuff. #}

{{ 'options'|_ }}

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

{{ 'expected_repetitions'|_ }}

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