templates/bundles/SyliusShopBundle/Product/Show/Tabs/rfq.html.twig line 1

Open in your IDE?
  1. {% if is_mobile() %}
  2.     {% if product.mainTaxon.code|default != 'services' and vendor_can_rfq(product) == true %}
  3.         <div class="ui tab active" data-tab="rfq">
  4.             {% if preview %}
  5.                 {{ render(url('app_common_rfq_preview_create', {'template': '@SyliusShop/Product/Show/_rfq.html.twig'})) }}
  6.             {% else %}
  7.                 {{ render(url('app_common_rfq_create', {'template': '@SyliusShop/Product/Show/_rfq.html.twig', 'productId': product.id, 'slug': product.slug})) }}
  8.             {% endif %}
  9.         </div>
  10.     {% endif %}
  11. {% else %}
  12.     {% if product.mainTaxon.code|default != 'services' and vendor_can_rfq(product) == true %}
  13.         <div class="ui top attached large tabular menu product-tabs">
  14.             <a class="item active" data-tab="rfq">{{ 'app.ui.product.tabs.rfq'|trans }}</a>
  15.         </div>
  16.         <div class="ui bottom attached tab segment product-tabs active" data-tab="rfq">
  17.             {% if preview %}
  18.                 {{ render(url('app_common_rfq_preview_create', {'template': '@SyliusShop/Product/Show/_rfq.html.twig'})) }}
  19.             {% else %}
  20.                 {{ render(url('app_common_rfq_create', {'template': '@SyliusShop/Product/Show/_rfq.html.twig', 'productId': product.id, 'slug': product.slug})) }}
  21.             {% endif %}
  22.         </div>
  23.     {% endif %}
  24. {% endif %}