themes/webapicTheme/templates/bundles/SyliusShopBundle/Checkout/SelectShipping/_choice.html.twig line 1

Open in your IDE?
  1. {% import '@SyliusShop/Common/Macro/money.html.twig' as money %}
  2.  {# {{ dump(method) }} #}
  3. <div class="item delivery{{ method.id }} method{{ method.pickup }}" {{ sylius_test_html_attribute('shipping-item') }} >
  4.     {% if form.vars.checked == false %}
  5.         <div class="over-click"></div>
  6.      {% endif %}
  7.     <div class="field">
  8.         <div class="ui radio checkbox js-pickup-{{ method.pickup }}" {{ sylius_test_html_attribute('shipping-method-checkbox') }}>
  9.             {{ form_widget(form, sylius_test_form_attribute('shipping-method-select')|merge({'attr': {'autocomplete': 'off'}})) }}
  10.         </div>
  11.     </div>
  12.     <div class="content">
  13.         {% set image_bg = '' %}         
  14.         {% if null != method.images %}
  15.             {% for image in method.images %}
  16.                 {% set image_bg = asset('/media/image/'~image.path) %}
  17.             {% endfor %}
  18.             <img src="{{ image_bg }}" class="ui image" />
  19.         {% endif %}
  20.         <div>
  21.             <a class="header" {{ sylius_test_html_attribute('shipping-method-label') }}>{{ form_label(form) }}</a>
  22.         
  23.             {% if method.description is not null %}
  24.                 <div class="description">
  25.                     <p>{{ method.description }}</p>
  26.                 </div>
  27.             {% endif %}
  28.              <div class="description">   
  29.                 {% if method.pickup != 'apel' %}           
  30.                     {{ 'app.front.commande.livraisonprevue'|trans }}{#: #}
  31.                     {{ app_shipping_estimate_start_date(method)|date('d/m/Y') }}{# - {{ app_shipping_estimate_end_date(method)|date('d/m/Y') }}#}
  32.                 {% endif %}
  33.             </div>
  34.         </div>
  35.         
  36.     </div>
  37.     <div class="extra">
  38.         <div class="ui large right floated fee label" {{ sylius_test_html_attribute('shipping-method-fee') }}>       
  39.            
  40.             {% if app_is_shipping_free(method.id) and method.pickup != 'shop' %}
  41.                 <div class="old-price">{{ money.convertAndFormat(fee) }}</div>
  42.                 0,00 €
  43.              {% else %}
  44.                 {{ money.convertAndFormat(fee) }}
  45.             {% endif %}
  46.         </div>
  47.     </div>
  48.     {% if form.vars.checked == true %}
  49.         <div class="subcontent">
  50.             {% include '@SyliusShop/Checkout/SelectShipping/Choices/_'~ method.subTemplate ~'.html.twig' ignore missing %}
  51.         </div>
  52.     {% endif %}
  53. </div>