Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

113 строки
5.5 KiB

  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * @var \Magento\Paypal\Block\Billing\Agreements $block
  8. */
  9. $billingAgreements = $block->getBillingAgreements();
  10. $paymentMethods = $block->getWizardPaymentMethodOptions();
  11. ?>
  12. <div class="account-billing-agreements">
  13. <?php if (count($billingAgreements) > 0) : ?>
  14. <?= $block->getChildHtml('pager') ?>
  15. <div class="table-wrapper billing-agreements">
  16. <table id="billing-agreements" class="data table table-billing-agreements">
  17. <caption class="table-caption"><?= $block->escapeHtml(__('Billing Agreements')) ?></caption>
  18. <thead>
  19. <tr>
  20. <th scope="col" class="col id"><?= $block->escapeHtml(__('Reference ID')) ?></th>
  21. <th scope="col" class="col status"><?= $block->escapeHtml(__('Status')) ?></th>
  22. <th scope="col" class="col created"><?= $block->escapeHtml(__('Created At')) ?></th>
  23. <th scope="col" class="col updated"><?= $block->escapeHtml(__('Updated At')) ?></th>
  24. <th scope="col" class="col payment"><?= $block->escapeHtml(__('Payment Method')) ?></th>
  25. <th scope="col" class="col actions">&nbsp;</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. <?php foreach ($billingAgreements as $item) : ?>
  30. <tr>
  31. <td data-th="<?= $block->escapeHtml(__('Reference ID')) ?>" class="col id">
  32. <?= $block->escapeHtml($block->getItemValue($item, 'reference_id')) ?>
  33. </td>
  34. <td data-th="<?= $block->escapeHtml(__('Status')) ?>" class="col status">
  35. <?= $block->escapeHtml($block->getItemValue($item, 'status')) ?>
  36. </td>
  37. <td data-th="<?= $block->escapeHtml(__('Created At')) ?>" class="col created">
  38. <?= $block->escapeHtml($block->getItemValue($item, 'created_at')) ?>
  39. </td>
  40. <td data-th="<?= $block->escapeHtml(__('Updated At')) ?>" class="col updated">
  41. <?= $block->escapeHtml($block->getItemValue($item, 'updated_at')) ?>
  42. </td>
  43. <td data-th="<?= $block->escapeHtml(__('Payment Method')) ?>" class="col payment">
  44. <?= $block->escapeHtml($block->getItemValue($item, 'payment_method_label')) ?>
  45. </td>
  46. <td data-th="" class="col actions">
  47. <a href="<?= $block->escapeUrl($block->getItemValue($item, 'edit_url')) ?>"
  48. class="action view">
  49. <span><?= $block->escapeHtml(__('View')) ?></span>
  50. </a>
  51. </td>
  52. </tr>
  53. <?php endforeach; ?>
  54. </tbody>
  55. </table>
  56. </div>
  57. <?php else : ?>
  58. <div class="message info empty">
  59. <span><?= $block->escapeHtml(__('There are no billing agreements yet.')) ?></span>
  60. </div>
  61. <?php endif; ?>
  62. <?php if ($paymentMethods) : ?>
  63. <form action="<?= $block->escapeUrl($block->getCreateUrl()) ?>" method="post"
  64. class="form form-new-agreement">
  65. <fieldset class="fieldset">
  66. <legend class="legend">
  67. <span><?= $block->escapeHtml(__('New Billing Agreement')) ?></span>
  68. </legend>
  69. <br />
  70. <p class="note">
  71. <?= $block->escapeHtml(__('You will be redirected to the payment system website.')) ?>
  72. </p>
  73. <div class="field payment method">
  74. <div class="control">
  75. <select id="payment_method" name="payment_method">
  76. <option value=""><?= $block->escapeHtml(__('-- Please Select --')) ?></option>
  77. <?php foreach ($paymentMethods as $code => $title) : ?>
  78. <option value="<?= $block->escapeHtml($code) ?>">
  79. <?= $block->escapeHtml($title) ?>
  80. </option>
  81. <?php endforeach; ?>
  82. </select>
  83. </div>
  84. </div>
  85. <div class="actions-toolbar">
  86. <div class="primary">
  87. <button type="submit" class="primary action create">
  88. <span><?= $block->escapeHtml(__('Create...')) ?></span>
  89. </button>
  90. </div>
  91. <div class="secondary">
  92. <a href="<?= $block->escapeUrl($block->getBackUrl()) ?>" class="action back">
  93. <span><?= $block->escapeHtml(__('Back')) ?></span>
  94. </a>
  95. </div>
  96. </div>
  97. </fieldset>
  98. </form>
  99. <?php else : ?>
  100. <div class="actions-toolbar">
  101. <div class="secondary">
  102. <a href="<?= $block->escapeUrl($block->getBackUrl()) ?>" class="action back">
  103. <span><?= $block->escapeHtml(__('Back')) ?></span>
  104. </a>
  105. </div>
  106. </div>
  107. <?php endif; ?>
  108. </div>