company.phtml 980 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. /** @var \Magento\Customer\Block\Widget\Company $block */
  8. ?>
  9. <div class="field company <?= $block->isRequired() ? 'required' : '' ?>">
  10. <label for="company" class="label">
  11. <span>
  12. <?= $block->escapeHtml(__('Company')) ?>
  13. </span>
  14. </label>
  15. <div class="control">
  16. <?php
  17. $_validationClass = $block->escapeHtmlAttr(
  18. $this->helper('Magento\Customer\Helper\Address')
  19. ->getAttributeValidationClass('company')
  20. );
  21. ?>
  22. <input type="text"
  23. name="company"
  24. id="company"
  25. value="<?= $block->escapeHtmlAttr($block->getCompany()) ?>"
  26. title="<?= $block->escapeHtmlAttr(__('Company')) ?>"
  27. class="input-text <?= $_validationClass ?: '' ?>"
  28. >
  29. </div>
  30. </div>