options.phtml 1.3 KB

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. // @deprecated
  8. ?>
  9. <div class="entry-edit-head">
  10. <h4 class="icon-head head-edit-form fieldset-legend"><?= $block->escapeHtml(__('Assigned Options')) ?></h4>
  11. </div>
  12. <fieldset id="options_form">
  13. <?php if (!$options): ?>
  14. <?php for ($_i = 1; $_i <= 5; $_i++): ?>
  15. <span class="field-row">
  16. <label for="option_<?= /* @noEscape */ $_i ?>"><?= $block->escapeHtml(__('Option Title:')) ?></label>
  17. <input id="option_<?= /* @noEscape */ $_i ?>" name="option[<?= /* @noEscape */ $_i ?>][code]" value="<?= /* @noEscape */ $_i ?>" class="input-text" type="text" />
  18. </span>
  19. <?php endfor; ?>
  20. <?php elseif ($options->getSize() > 0): ?>
  21. <?php foreach ($options->getItems() as $_item): ?>
  22. <span class="field-row">
  23. <label for="option_<?= $block->escapeHtmlAttr($_item->getId()) ?>"><?= $block->escapeHtml(__('Option Title:')) ?></label>
  24. <input id="option_<?= $block->escapeHtmlAttr($_item->getId()) ?>" name="option[<?= $block->escapeHtmlAttr($_item->getId()) ?>][code]" value="<?= $block->escapeHtmlAttr($_item->getCode()) ?>" class="input-text" type="text" />
  25. </span>
  26. <?php endforeach; ?>
  27. <?php endif; ?>
  28. </fieldset>