{% extends 'admin/layout.html.twig' %} {% block title %}New Transfer - KitscoApp{% endblock %} {% block page_title %}New Transfer{% endblock %} {% block content %}
Accounts / Transfers

Transfer Details

{{ form_start(form) }}
{# From Account dropdown #}
{% set from_account_options = [] %} {% for choice in form.fromAccount.vars.choices %} {% set from_account_options = from_account_options|merge([{value: choice.value, label: choice.label}]) %} {% endfor %} {% include 'components/_select_dropdown.html.twig' with { id: form.fromAccount.vars.id, name: form.fromAccount.vars.full_name, value: form.fromAccount.vars.value, label: 'From Account', options: from_account_options, placeholder: 'Select source account...', required: true } %} {% do form.fromAccount.setRendered %}
{# To Account dropdown #}
{% set to_account_options = [] %} {% for choice in form.toAccount.vars.choices %} {% set to_account_options = to_account_options|merge([{value: choice.value, label: choice.label}]) %} {% endfor %} {% include 'components/_select_dropdown.html.twig' with { id: form.toAccount.vars.id, name: form.toAccount.vars.full_name, value: form.toAccount.vars.value, label: 'To Account', options: to_account_options, placeholder: 'Select destination account...', required: true } %} {% do form.toAccount.setRendered %}
{{ form_row(form.amount) }}
{{ form_row(form.transferDate) }}
{# Cross-currency fields - hidden by default #}
{{ form_row(form.description) }}
Cancel
{{ form_end(form) }}
{% endblock %}