{% if form %}
{% form_theme form '@CoreShopFrontend/Form/theme.html.twig' %}

{{ form_start(form, {'action': path('coreshop_wishlist_add', {'product': product.id|coreshop_string})}) }}
    {{ form_errors(form) }}

    <button type="submit" href="{{ path('coreshop_wishlist_add', {product: product.id|coreshop_string}) }}" class="btn btn-wishlist" {{ coreshop_test_html_attribute('add-to-wishlist') }}>
        <i class="fa fa-heart"></i>
    </button>

    {{ form_row(form._token) }}
{{ form_end(form, {'render_rest': false}) }}
{% endif %}
