{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %}

<h4>{{ 'sylius.ui.your_default_address'|trans }}</h4>
<div class="account-address card" id="sylius-default-address" {{ sylius_test_html_attribute('default-address') }}>
    <div class="card-body" {{ sylius_test_html_attribute('address', "%s %s"|format(address.firstName, address.lastName)) }}>
        {% include '@SyliusShop/Common/_address.html.twig' with {'address': address} %}
    </div>

    <nav class="card-footer">
        <div {{ sylius_test_html_attribute('edit-button') }}>{{ buttons.edit(path('sylius_shop_account_address_book_update', {'id': address.id})) }}</div>
        {{ buttons.delete(path('sylius_shop_account_address_book_delete', {'id': address.id}), null, true, address.id) }}
    </nav>
</div>
