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

<div class="address-card">
    <div class="address-card-content" {{ sylius_test_html_attribute('address', "%s %s"|format(address.firstName, address.lastName)) }}>
        <div>
            {% include '@SyliusShop/Common/_address.html.twig' with {'address': address} %}
        </div>
        <div class="buttons">
            <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) }}
        </div>
    </div>
</div>
