We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) 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,32 +131,27 @@ ...@@ -142,32 +131,27 @@
</select> </select>
</div> </div>
</div> </div>
<!-- /ko --> <!-- /ko -->
</fieldset> </fieldset>
<div class="checkout-agreements-block"> </form>
<!-- ko foreach: $parents[1].getRegion('before-place-order') --> <div class="checkout-agreements-block">
<!-- ko template: getTemplate() --><!-- /ko --> <!-- ko foreach: $parents[1].getRegion('before-place-order') -->
<!--/ko--> <!-- ko template: getTemplate() --><!-- /ko -->
</div> <!--/ko-->
<div class="actions-toolbar"> </div>
<div class="primary"> <div class="actions-toolbar">
<button class="action primary checkout" <div class="primary">
type="submit" <button class="action primary checkout"
data-bind=" type="submit"
data-bind="
click: placeOrder, click: placeOrder,
attr: {title: $t('Place Order')}, attr: {title: $t('Place Order')},
enable: isButtonActive()" enable: isButtonActive()"
disabled> disabled>
<span data-bind="text: $t('Place Order')"></span> <span data-bind="text: $t('Place Order')"></span>
</button> </button>
</div>
</div> </div>
</form> </div>
</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