{% for subform in form.subtransactions %}
{% include 'banking/transaction_form/subtransaction_form.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 %}