validate.phtml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  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. <div class="amazon-validate-container">
  18. <div class="block block-amazon-validate">
  19. <div class="block-title">
  20. <strong id="block-amazon-login-heading" role="heading" aria-level="2">
  21. <?= $block->escapeHtml(__('Welcome back!')) ?>
  22. </strong>
  23. </div>
  24. <div class="block-content" aria-labelledby="block-amazon-login-heading">
  25. <p><?= $block->escapeHtml(__('A shop account for this email address already exists. Please enter your ' .
  26. 'shop accounts password to log in without leaving the shop.')) ?>
  27. </p>
  28. <form class="form password validate"
  29. action="<?= $block->escapeUrl($block->getUrl('*/*/validatepost')) ?>"
  30. method="post"
  31. id="form-validate"
  32. data-mage-init='{"validation":{}}'>
  33. <fieldset class="fieldset" data-hasrequired="<?= $block->escapeHtml(__('* Required Fields')) ?>">
  34. <div class="field email required">
  35. <label for="password" class="label">
  36. <span><?= $block->escapeHtml(__('Password')) ?></span>
  37. </label>
  38. <div class="control">
  39. <input type="password"
  40. name="password"
  41. alt="password"
  42. id="password"
  43. class="input-text"
  44. value=""
  45. data-validate="{required:true}">
  46. </div>
  47. </div>
  48. <div class="actions-toolbar">
  49. <div class="primary">
  50. <button type="submit" class="action submit primary">
  51. <span><?= $block->escapeHtml(__('Ok')) ?></span>
  52. </button>
  53. </div>
  54. <div class="secondary continue-as-guest">
  55. <a class="action secondary" href="<?= $block->escapeUrl($block->getContinueAsGuestUrl())?>">
  56. <span><?= $block->escapeHtml(__('Continue as Guest')) ?></span>
  57. </a>
  58. </div>
  59. <div class="secondary forgot-password">
  60. <a class="action secondary" href="<?= $block->escapeUrl($block->getForgotPasswordUrl()) ?>">
  61. <span><?= $block->escapeHtml(__('Forgot Your Password?')) ?></span>
  62. </a>
  63. </div>
  64. </div>
  65. </fieldset>
  66. </form>
  67. </div>
  68. </div>
  69. </div>