{% set id = app.request.attributes.get('id') %}

{{ form_start(form, {'action': path('sylius_shop_account_address_book_set_as_default', {'id': id}), 'method': 'PATCH'}) }}
    <input hidden name="{{ form.defaultAddress.vars['full_name'] }}" value="{{ id }}" />

    <button type="submit" class="link-secondary p-0" {{ sylius_test_html_attribute('set-as-default-button') }}>
         {{ 'sylius.ui.set_as_default'|trans }}
    </button>
{{ form_row(form._token) }}
{{ form_end(form, {'render_rest': false}) }}
