diff --git a/livesync/indico_livesync/templates/edit_agent.html b/livesync/indico_livesync/templates/edit_agent.html
index 6ad394c..6056fde 100644
--- a/livesync/indico_livesync/templates/edit_agent.html
+++ b/livesync/indico_livesync/templates/edit_agent.html
@@ -16,12 +16,12 @@
{% endblock %}
{% block content %}
- {{ form_header() }}
+ {{ form_header(form) }}
{% for field in form.visible_fields %}
{{ form_row(field) }}
{% endfor %}
- {% call form_footer() %}
-
+ {% call form_footer(form) %}
+
{% trans %}Cancel{% endtrans %}
{% endcall %}
{% endblock %}