{% 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 %}