Skip to content

Commit

Permalink
[Design-v2] - fix behat test
Browse files Browse the repository at this point in the history
  • Loading branch information
codingioanniskrikos committed Nov 26, 2024
1 parent 425956d commit 48d9f61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
{% else %}
<div class="input-group gap-2">
{% 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 %}
<div class="input-group-append">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
{% set taxes = cart.taxes %}

<div class="input-group mt-3 mt-md-0">
{{ 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 })) }}
</div>

{% include '@CoreShopFrontend/Cart/Summary/_rules.html.twig' %}
Expand Down

0 comments on commit 48d9f61

Please sign in to comment.