We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit 7f9add7a authored by Rik ter Beek's avatar Rik ter Beek

Move submit buttons out of form.

parent 61dccd76
...@@ -21,12 +21,8 @@ ...@@ -21,12 +21,8 @@
* Author: Adyen <magento@adyen.com> * Author: Adyen <magento@adyen.com>
*/ */
--> -->
<!-- ko foreach: getAdyenBillingAgreements() --> <!-- ko foreach: getAdyenBillingAgreements() -->
<div class="payment-method" data-bind="css: {'_active': (value == $parent.isBillingAgreementChecked())}"> <div class="payment-method" data-bind="css: {'_active': (value == $parent.isBillingAgreementChecked())}">
<div class="payment-method-title field choice"> <div class="payment-method-title field choice">
<input type="radio" <input type="radio"
name="payment[method]" name="payment[method]"
...@@ -34,9 +30,7 @@ ...@@ -34,9 +30,7 @@
data-bind="attr: {'id': value}, value: value, checked: $parent.isBillingAgreementChecked, click: $parent.selectBillingAgreement"/> data-bind="attr: {'id': value}, value: value, checked: $parent.isBillingAgreementChecked, click: $parent.selectBillingAgreement"/>
<label data-bind="attr: {'for': value}" class="label"> <label data-bind="attr: {'for': value}" class="label">
<!-- ko if: logo --> <!-- ko if: logo -->
<img data-bind="attr: { <img data-bind="attr: {
'class': getCode(), 'class': getCode(),
'src': logo.url, 'src': logo.url,
...@@ -61,7 +55,6 @@ ...@@ -61,7 +55,6 @@
<!--/ko--> <!--/ko-->
</div> </div>
<form class="form" action="#" method="post" data-bind=" <form class="form" action="#" method="post" data-bind="
attr: {'id': 'adyen_oneclick_' + value, 'data-role': 'adyen_oneclick_' + value }, attr: {'id': 'adyen_oneclick_' + value, 'data-role': 'adyen_oneclick_' + value },
mageInit: { mageInit: {
...@@ -75,7 +68,6 @@ ...@@ -75,7 +68,6 @@
data-bind="attr: {class: 'fieldset payment items ccard ' + getCode(), id: 'payment_form_' + $parent.getCode() + '_' + value}"> data-bind="attr: {class: 'fieldset payment items ccard ' + getCode(), id: 'payment_form_' + $parent.getCode() + '_' + value}">
<!-- ko if: agreement_data.card --> <!-- ko if: agreement_data.card -->
<div class="field number"> <div class="field number">
<label class="label"> <label class="label">
<span><!-- ko text: $t('Credit Card Number')--><!-- /ko --></span> <span><!-- ko text: $t('Credit Card Number')--><!-- /ko --></span>
...@@ -91,7 +83,6 @@ ...@@ -91,7 +83,6 @@
<!--/ko--> <!--/ko-->
<!-- ko if: agreement_data.bank --> <!-- ko if: agreement_data.bank -->
<div class="field number"> <div class="field number">
<label class="label"> <label class="label">
<span><!-- ko text: $t('Bank account holder name')--><!-- /ko --></span> <span><!-- ko text: $t('Bank account holder name')--><!-- /ko --></span>
...@@ -118,11 +109,9 @@ ...@@ -118,11 +109,9 @@
<span data-bind="text: agreement_data.bank.countryCode"></span> <span data-bind="text: agreement_data.bank.countryCode"></span>
</div> </div>
</div> </div>
<!--/ko--> <!--/ko-->
<!-- ko if: number_of_installments.length > 0 --> <!-- ko if: number_of_installments.length > 0 -->
<div class="field required" <div class="field required"
data-bind="attr: {id: getCode() + '_installments_div'}, visible: getInstallments().length > 0"> data-bind="attr: {id: getCode() + '_installments_div'}, visible: getInstallments().length > 0">
<label data-bind="attr: {for: getCode() + '_installments'}" class="label"> <label data-bind="attr: {for: getCode() + '_installments'}" class="label">
...@@ -142,12 +131,9 @@ ...@@ -142,12 +131,9 @@
</select> </select>
</div> </div>
</div> </div>
<!-- /ko --> <!-- /ko -->
</fieldset> </fieldset>
</form>
<div class="checkout-agreements-block"> <div class="checkout-agreements-block">
<!-- ko foreach: $parents[1].getRegion('before-place-order') --> <!-- ko foreach: $parents[1].getRegion('before-place-order') -->
<!-- ko template: getTemplate() --><!-- /ko --> <!-- ko template: getTemplate() --><!-- /ko -->
...@@ -166,8 +152,6 @@ ...@@ -166,8 +152,6 @@
</button> </button>
</div> </div>
</div> </div>
</form>
</div> </div>
</div> </div>
<!--/ko--> <!--/ko-->
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment