{{ form.hidden_tag() }} {% with subform = form.account_info, id_prefix = 'transaction' %} {% include 'banking/transaction_form/bank_info_form.html' %} {% endwith %}
{{ form.transaction_date.label }} {{ form.transaction_date }}
{{ form.merchant.label }} {{ form.merchant }}
{% for subform in form.subtransactions %} {% include 'common/transaction_form/subtransaction_subform.html' %} {% endfor %}
+ Add Subtransaction
{% if not update %}
+ Record Transfer
{% endif %}
{% if update == 'transfer' %} {{ form.submit(class_="button", onclick="return alert('This transaction is a transfer and is linked to another. You must update that transaction manually, as changes will not be propagated.')") }} {% else %} {{ form.submit(class_="button") }} {% endif %}