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

Open in your IDE?
  1. {% import "@SyliusShop/Common/Macro/icons.html.twig" as icons %}
  2. {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
  3. {#{% if product.brand %}#}
  4. {#    {{ 'loevgaard_sylius_brand.ui.brand'|trans }}: {{ product.brand.name }}#}
  5. {#    {% if product.brand.url %}#}
  6. {#        <a href="{{ product.brand.url }}" target="_blank">Brand URL</a>#}
  7. {#    {% endif %}#}
  8. {#{% endif %}#}
  9. {% if product.brand and (product.brand.platePerColor or product.brand.plateDefault) %}
  10. <div class="product-attribute d-flex align-items-center mb-3">
  11.     <span class="sylius-product-atribute-name d-inline-flex pe-3 custom-display-7 disable-rfs" data-bs-toggle="tooltip" data-bs-title="{{ product.brand.platePerColor ? 'Plate charge per color' : 'Plate charge' }}">
  12.         {{ icons.plateCharge() }}
  13.         <span class="visually-hidden"></span>
  14.     </span>
  15.     <span class="sylius-product-attribute-value">
  16.         {{  product.brand.platePerColor ? 'Plate charge per color: ' ~ money.convertAndFormatSpecial(product.brand.platePerColor * 100, { 'divisor': 100, 'scale': 2 }) : 'Plate charge: ' ~  money.convertAndFormatSpecial(product.brand.plateDefault * 100, { 'divisor': 100, 'scale': 2 }) }}
  17.     </span>
  18. </div>
  19. {% endif %}
  20. {% if product.brand and product.brand.setupDefault %}
  21. <div class="product-attribute d-flex align-items-center mb-3">
  22.     <span class="sylius-product-atribute-name d-inline-flex pe-3 custom-display-7 disable-rfs" data-bs-toggle="tooltip" data-bs-title="Setup charge">
  23.         {{ icons.setupCharge() }}
  24.         <span class="visually-hidden"></span>
  25.     </span>
  26.     <span class="sylius-product-attribute-value">
  27.         {{ 'Setup charge: ' ~ money.convertAndFormatSpecial(product.brand.setupDefault * 100, { 'divisor': 100, 'scale': 2 }) }}
  28.     </span>
  29. </div>
  30. {% endif %}
  31. {% if product.brand and product.brand.freight %}
  32.     <div class="product-attribute d-flex align-items-center mb-3">
  33.     <span class="sylius-product-atribute-name d-inline-flex pe-3 custom-display-7 disable-rfs" data-bs-toggle="tooltip" data-bs-title="Freight">
  34.         {{ icons.freight() }}
  35.         <span class="visually-hidden"></span>
  36.     </span>
  37.         <span class="sylius-product-attribute-value">
  38.         {{ 'app.form.brand.freight'|trans }}
  39.     </span>
  40.     </div>
  41. {% endif %}
  42. {% if product.brand and product.brand.productionTime %}
  43. <div class="product-attribute d-flex align-items-center mb-3">
  44.     <span class="sylius-product-atribute-name d-inline-flex pe-3 custom-display-7 disable-rfs" data-bs-toggle="tooltip" data-bs-title="Production time">
  45.         {{ icons.productionTime() }}
  46.         <span class="visually-hidden"></span>
  47.     </span>
  48.     <span class="sylius-product-attribute-value">
  49.         {{ 'Production time: ' ~ product.brand.productionTime }}
  50.     </span>
  51. </div>
  52. {% endif %}