From 48d9f616140a6d10fe16c4b83ff3fe4f6ff924d3 Mon Sep 17 00:00:00 2001 From: Krikochoritis Ioannis Date: Tue, 26 Nov 2024 07:10:50 +0100 Subject: [PATCH] [Design-v2] - fix behat test --- .../Resources/views/Cart/Summary/_item.html.twig | 2 +- .../Resources/views/Cart/Summary/_summary.html.twig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CoreShop/Bundle/FrontendBundle/Resources/views/Cart/Summary/_item.html.twig b/src/CoreShop/Bundle/FrontendBundle/Resources/views/Cart/Summary/_item.html.twig index f60b826cbf..a69270ecc3 100644 --- a/src/CoreShop/Bundle/FrontendBundle/Resources/views/Cart/Summary/_item.html.twig +++ b/src/CoreShop/Bundle/FrontendBundle/Resources/views/Cart/Summary/_item.html.twig @@ -76,7 +76,7 @@ {% else %}
{% set relation_id = random() %} - {{ form_widget(form.quantity, {attr: {class: 'form-control cart-item-quantity cs-unit-input', 'data-cs-unit-identifier': relation_id }}, coreshop_test_form_attribute('cart-item-quantity-input', item.name)) }} + {{ form_widget(form.quantity, coreshop_test_form_attribute('cart-item-quantity-input', item.name)|coreshop_merge_recursive( {attr: {class: 'form-control cart-item-quantity cs-unit-input', 'data-cs-unit-identifier': relation_id } })) }} {% if item.hasUnitDefinition %}
diff --git a/src/CoreShop/Bundle/FrontendBundle/Resources/views/Cart/Summary/_summary.html.twig b/src/CoreShop/Bundle/FrontendBundle/Resources/views/Cart/Summary/_summary.html.twig index f37deea573..09582974e0 100644 --- a/src/CoreShop/Bundle/FrontendBundle/Resources/views/Cart/Summary/_summary.html.twig +++ b/src/CoreShop/Bundle/FrontendBundle/Resources/views/Cart/Summary/_summary.html.twig @@ -8,8 +8,8 @@ {% set taxes = cart.taxes %}
- {{ form_widget(form.cartRuleCoupon, coreshop_test_form_attribute('voucher-code'), { attr: {placeholder: 'coreshop.ui.voucher.code'|trans}}) }} - {{ form_widget(form.submit_voucher, coreshop_test_form_attribute('apply-voucher-button'), { attr: { class: 'd-flex align-items-center justify-content-center btn btn-secondary btn btn-secondary' }, label: 'coreshop.ui.voucher.apply_code'|trans }) }} + {{ form_widget(form.cartRuleCoupon, coreshop_test_form_attribute('voucher-code')|coreshop_merge_recursive( { attr: {placeholder: 'coreshop.ui.voucher.code'|trans}})) }} + {{ form_widget(form.submit_voucher, coreshop_test_form_attribute('apply-voucher-button')|coreshop_merge_recursive( { attr: { class: 'd-flex align-items-center justify-content-center btn btn-secondary btn btn-secondary' }, label: 'coreshop.ui.voucher.apply_code'|trans })) }}
{% include '@CoreShopFrontend/Cart/Summary/_rules.html.twig' %}