{{ form_start(form, {'attr': {'id':'entry-form-'~user.id, 'onsubmit':'return saveUser('~ user.id ~');'} }) }} {{ form_end(form) }}