{{ form_start(form, {'attr': {'id': 'user-shared-form', 'data-user-id': user.id}}) }} {{ form_end(form) }}