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

<div class="card address-card">
    <div class="card-body" {{ sylius_test_html_attribute('address', "%s %s"|format(address.firstName, address.lastName)) }}>
        <div class="row address-block">
            <div class="col">
                {% include '@SyliusShop/Common/_address.html.twig' with {'address': address} %}
            </div>
            <div class="action-card col">
                <div><a class="link-secondary"
                      href="{{ path('sylius_shop_account_address_book_update', {'id': address.id}) }}">{{ 'sylius.ui.edit'|trans }}</a></div>
                <div class="default-btn">{{ render(path('sylius_shop_account_address_book_set_as_default', {'id': address.id})) }}</div>
                <div> {{ buttons.delete(path('sylius_shop_account_address_book_delete', {'id': address.id}), null, true, address.id) }}</div>
            </div>
        </div>
    </div>
</div>
