checkout-sandbox-simulator.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!--
  2. /**
  3. * Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License").
  6. * You may not use this file except in compliance with the License.
  7. * A copy of the License is located at
  8. *
  9. * http://aws.amazon.com/apache2.0
  10. *
  11. * or in the "license" file accompanying this file. This file is distributed
  12. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  13. * express or implied. See the License for the specific language governing
  14. * permissions and limitations under the License.
  15. */
  16. -->
  17. <!-- ko foreach: getRegion('before-sandbox-simulator') -->
  18. <!-- ko template: getTemplate() --><!-- /ko -->
  19. <!--/ko-->
  20. <!-- ko if: (isAmazonAccountLoggedIn) -->
  21. <!-- ko if: (isSandboxEnabled) -->
  22. <div class="amazon-sandbox-simulator payment-option _collapsible"
  23. data-bind="mageInit: {'collapsible':{'openedState': '_active'}}">
  24. <div class="payment-option-title field choice" data-role="title">
  25. <span class="action action-toggle" id="amazon-sandbox-simulator-heading" role="heading" aria-level="2">
  26. <!-- ko i18n: 'Simulate Payment Scenarios'--><!-- /ko -->
  27. </span>
  28. </div>
  29. <div class="payment-option-content" data-role="content">
  30. <div class="amazon-sandbox-simulator-scenarios" data-bind="foreach: sandboxSimulationOptions">
  31. <div data-bind="attr: {class: 'field choice amazon-sandbox-simulator-scenario amazon-sandbox-simulator-scenario-' + $index()}">
  32. <div class="control">
  33. <input type="radio" class="radio" data-bind="
  34. checkedValue: simulationValue,
  35. checked: $parent.sandboxSimulationReference,
  36. attr: {
  37. name: 'amazon-sandbox-simulator-scenario-' + $index(),
  38. id: 'amazon-sandbox-simulator-scenario-' + $index(),
  39. 'aria-labelledby': 'amazon-sandbox-simulator-scenario-' + $index()
  40. }"/>
  41. <label class="label" data-bind="
  42. attr: {
  43. id: 'amazon-sandbox-simulator-scenario-' + $index() + '-label',
  44. for: 'amazon-sandbox-simulator-scenario-' + $index()
  45. }">
  46. <span data-bind="i18n: labelText"></span>
  47. </label>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <!--/ko-->
  54. <!--/ko-->
  55. <!-- ko foreach: getRegion('after-sandbox-simulator') -->
  56. <!-- ko template: getTemplate() --><!-- /ko -->
  57. <!--/ko-->