checkmo.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!--
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. -->
  7. <div class="payment-method" data-bind="css: {'_active': (getCode() == isChecked())}">
  8. <div class="payment-method-title field choice">
  9. <input type="radio"
  10. name="payment[method]"
  11. class="radio"
  12. data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
  13. <label data-bind="attr: {'for': getCode()}" class="label"><span data-bind="text: getTitle()"></span></label>
  14. </div>
  15. <div class="payment-method-content">
  16. <!-- ko foreach: getRegion('messages') -->
  17. <!-- ko template: getTemplate() --><!-- /ko -->
  18. <!--/ko-->
  19. <div class="payment-method-billing-address">
  20. <!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) -->
  21. <!-- ko template: getTemplate() --><!-- /ko -->
  22. <!--/ko-->
  23. </div>
  24. <!-- ko if: getMailingAddress() || getPayableTo() -->
  25. <dl class="items check payable">
  26. <!-- ko if: getPayableTo() -->
  27. <dt class="title"><!-- ko i18n: 'Make Check payable to:' --><!-- /ko --></dt>
  28. <dd class="content"><!-- ko text: getPayableTo() --><!-- /ko --></dd>
  29. <!-- /ko -->
  30. <!-- ko if: getMailingAddress() -->
  31. <dt class="title"><!-- ko i18n: 'Send Check to:' --><!-- /ko --></dt>
  32. <dd class="content">
  33. <address class="checkmo mailing address" data-bind="html: getMailingAddress()"></address>
  34. </dd>
  35. <!-- /ko -->
  36. </dl>
  37. <!-- /ko -->
  38. <div class="checkout-agreements-block">
  39. <!-- ko foreach: $parent.getRegion('before-place-order') -->
  40. <!-- ko template: getTemplate() --><!-- /ko -->
  41. <!--/ko-->
  42. </div>
  43. <div class="actions-toolbar">
  44. <div class="primary">
  45. <button class="action primary checkout"
  46. type="submit"
  47. data-bind="
  48. click: placeOrder,
  49. attr: {title: $t('Place Order')},
  50. css: {disabled: !isPlaceOrderActionAllowed()},
  51. enable: (getCode() == isChecked())
  52. "
  53. disabled>
  54. <span data-bind="i18n: 'Place Order'"></span>
  55. </button>
  56. </div>
  57. </div>
  58. </div>
  59. </div>