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

<div class="account-address card">
    <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>
        {{ render(path('sylius_shop_account_address_book_set_as_default', {'id': address.id})) }}
        {{ buttons.delete(path('sylius_shop_account_address_book_delete', {'id': address.id}), null, true, address.id) }}
    </nav>
</div>
