{# templates/bundles/SyliusShopBundle/Checkout/address_shipping.html.twig #} {% extends '@SyliusShop/Checkout/layout.html.twig' %} {# thème commun aux deux sous-formulaires #} {% form_theme addressForm '@SyliusShop/Form/theme.html.twig' %} {% form_theme shippingForm '@SyliusShop/Form/theme.html.twig' %} {% block title %} {{ 'sylius.ui.shipping'|trans }} » {{ 'sylius.ui.address'|trans }} | {{ parent() }} {% endblock %} {% block content %} {{ sylius_template_event( ['sylius.shop.checkout.address.steps', 'sylius.shop.checkout.steps'], _context ) }}
{# --------
-------- #} {{ form_start(addressForm, { action: path('app_shop_checkout_address_shipping'), attr: {'class': 'loadable', 'novalidate': 'novalidate'} }) }} {# 1. -- LIVRAISON EN PREMIER -- #} {% if order.shipments|length > 0 %} {{ sylius_template_event('sylius.shop.checkout.select_shipping.before_form', {'order': order}) }}

{{ 'sylius.ui.shipping'|trans }}

{{ form_errors(shippingForm) }}
{% include '@SyliusShop/Checkout/SelectShipping/_form.html.twig' with {'form': shippingForm} %}
{{ form_row(shippingForm._token) }} {{ sylius_template_event('sylius.shop.checkout.select_shipping.after_form', {'order': order}) }} {% endif %}
{# 2. -- ADRESSE ENSUITE -- #} {{ sylius_template_event('sylius.shop.checkout.address.before_form', {'order': order}) }}

{{ 'sylius.ui.address'|trans }}

{{ form_errors(addressForm) }} {% include '@SyliusShop/Checkout/Address/_form.html.twig' with {'form': addressForm} %} {{ form_row(addressForm._token) }} {{ sylius_template_event('sylius.shop.checkout.address.after_form', {'order': order}) }} {# -------- NAVIGATION -------- #} {{ form_end(addressForm, {'render_rest': false}) }}
{{ sylius_template_event( ['sylius.shop.checkout.address.sidebar', 'sylius.shop.checkout.sidebar'], _context ) }}
{% endblock %}