<div class="item paiment{{ method.id }} {% if method.code == "KDO" %}js-kdo{% endif %}" {{ sylius_test_html_attribute('payment-item') }}>
<div class="field">
<div class="ui radio checkbox" {{ sylius_test_html_attribute('payment-method-checkbox') }}>
{{ form_widget(form, sylius_test_form_attribute('payment-method-select')) }}
</div>
</div>
<div class="content">
{% set image_bg = '' %}
{% if null != method.images %}
{% for image in method.images %}
{% set image_bg = asset('/media/image/'~image.path) %}
{% endfor %}
<img src="{{ image_bg }}" class="ui image" />
{% endif %}
<div>
<a class="header">{{ form_label(form, null, {'label_attr': {'data-test-payment-method-label': ''}}) }}</a>
{% if method.description is not null %}
<div class="description">
<p>{{ method.description }}</p>
</div>
{% endif %}
</div>
{% if form.vars.checked %}
<div class="subcontent">
{% include '@SyliusShop/Checkout/SelectPayment/Choices/_'~ method.code | lower ~'.html.twig' ignore missing %}
</div>
{% endif %}
</div>
</div>