captcha.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!--
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. -->
  7. <input name="captcha_form_id" type="hidden" data-bind="value: formId, attr: {'data-scope': dataScope}" />
  8. <!-- ko if: (isRequired() && getIsVisible())-->
  9. <div class="field captcha required" data-bind="blockLoader: getIsLoading()">
  10. <label data-bind="attr: {for: 'captcha_' + formId}" class="label"><span data-bind="i18n: 'Please type the letters and numbers below'"></span></label>
  11. <div class="control captcha">
  12. <input name="captcha_string" type="text" class="input-text required-entry" data-bind="value: captchaValue(), attr: {id: 'captcha_' + formId, 'data-scope': dataScope}" autocomplete="off"/>
  13. <div class="nested">
  14. <div class="field captcha no-label">
  15. <div class="control captcha-image">
  16. <img data-bind="attr: {
  17. alt: $t('Please type the letters and numbers below'),
  18. title: $t('Please type the letters and numbers below'),
  19. height: imageHeight(),
  20. src: getImageSource(),
  21. }"
  22. class="captcha-img"/>
  23. <button type="button" class="action reload captcha-reload" data-bind="attr: {title: $t('Reload captcha')}, click: refresh">
  24. <span data-bind="i18n: 'Reload captcha'"></span>
  25. </button>
  26. </div>
  27. </div>
  28. <!-- ko if: isCaseSensitive()-->
  29. <div class="captcha-note note" data-bind="i18n: 'Attention: Captcha is case sensitive.'"></div>
  30. <!-- /ko -->
  31. </div>
  32. </div>
  33. </div>
  34. <!-- /ko -->