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

Open in your IDE?
  1. <div class="item paiment{{ method.id }}  {% if method.code == "KDO" %}js-kdo{% endif %}" {{ sylius_test_html_attribute('payment-item') }}>
  2.     <div class="field">
  3.         <div class="ui radio checkbox" {{ sylius_test_html_attribute('payment-method-checkbox') }}>
  4.             {{ form_widget(form, sylius_test_form_attribute('payment-method-select')) }}
  5.         </div>
  6.     </div>
  7.     <div class="content">
  8.         {% set image_bg = '' %}         
  9.         {% if null != method.images %}
  10.             {% for image in method.images %}
  11.                 {% set image_bg = asset('/media/image/'~image.path) %}
  12.             {% endfor %}
  13.             <img src="{{ image_bg }}" class="ui image" />
  14.         {% endif %}
  15.         <div>
  16.             <a class="header">{{ form_label(form, null, {'label_attr': {'data-test-payment-method-label': ''}}) }}</a>
  17.             {% if method.description is not null %}
  18.                 <div class="description">
  19.                     <p>{{ method.description }}</p>
  20.                 </div>
  21.             {% endif %}
  22.         </div>
  23.         
  24.         {% if form.vars.checked %}
  25.             <div class="subcontent">
  26.                 {% include '@SyliusShop/Checkout/SelectPayment/Choices/_'~  method.code | lower ~'.html.twig' ignore missing %}
  27.             </div>
  28.         {% endif %}
  29.     </div>
  30. </div>