themes/BootstrapChildTheme/SyliusShopBundle/views/Product/Show/_options.html.twig line 1

Open in your IDE?
  1. {% set variants = form.cartItem.variant %}
  2. {% if variants|length > 2 %}
  3.     <h3>Extras</h3>
  4. {% endif %}
  5. {% for optionForm in variants %}
  6.     {% if loop.index > 3 %}
  7.         {% if optionForm.vars.attr['data-switcher'] is defined and optionForm.vars.attr['data-switcher'] %}
  8.             {% form_theme optionForm '@SyliusShop/Form/theme.html.twig' %}
  9.         {% else %}
  10.             {% form_theme optionForm '@SyliusShop/Form/bootstrap_5_horizontal_layout.html.twig' %}
  11.         {% endif %}
  12.         <div class="col-md-6{% if optionForm.vars.attr['data-switcher'] is defined and optionForm.vars.attr['data-switcher'] %} extra-switcher{% endif %}">
  13.             {{ form_row(optionForm, { 'attr': { 'data-option': optionForm.vars.name } }) }}
  14.         </div>
  15.     {% endif %}
  16. {% endfor %}