{% 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="btn btn-secondary" {{ sylius_test_html_attribute('set-as-default-button') }}>
        <i class="fa fa-save"></i>&nbsp;{{ 'sylius.ui.set_as_default'|trans }}
    </button>
{{ form_row(form._token) }}
{{ form_end(form, {'render_rest': false}) }}
