{% set enabled = order.payments|length %}

<div class="form-btn-wrapper">
    {% if sylius_is_shipping_required(order) %}
        <a href="{{ path('sylius_shop_checkout_select_shipping') }}" class="btn btn-outline-primary btn-reverse">
            {{ 'sylius.ui.change_shipping_method'|trans }}
        </a>
    {% else %}
        <a href="{{ path('sylius_shop_checkout_address') }}" class="btn btn-outline-primary btn-reverse">
            {{ 'sylius.ui.change_address'|trans }}
        </a>
    {% endif %}

    <button type="submit" id="next-step" class="btn btn-primary{% if not enabled %} disabled{% endif %} button" {{ sylius_test_html_attribute('next-step') }}>
        {{ 'app.ui.form.submit_and_pay'|trans }}
    </button>
</div>
