{% from 'forms/_form.html' import form_header, form_rows, form_footer %}
{{ form_header(form, orientation='vertical') }}
{{ form_rows(form, skip_labels=true) }}
{% call form_footer(form) %}
{% trans %}Close{% endtrans %}
{% endcall %}
{% with id = uuid() %}
{# Set custom data for the dialog callback so it knows if the note has been saved,
in which case we'll have to reload the page #}
{% endwith %}