| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- // @codingStandardsIgnoreFile
- ?>
- <?php
- /**
- * @see \Magento\Sales\Block\Adminhtml\Items\Column\Name
- */
- ?>
- <?php if ($_item = $block->getItem()): ?>
- <div id="order_item_<?= $block->escapeHtml($_item->getId()) ?>_title"
- class="product-title">
- <?= $block->escapeHtml($_item->getName()) ?>
- </div>
- <div class="product-sku-block">
- <span><?= $block->escapeHtml(__('SKU'))?>:</span> <?= implode('<br />', $this->helper('Magento\Catalog\Helper\Data')->splitSku($block->escapeHtml($block->getSku()))) ?>
- </div>
- <?php if ($block->getOrderOptions()): ?>
- <dl class="item-options">
- <?php foreach ($block->getOrderOptions() as $_option): ?>
- <dt><?= $block->escapeHtml($_option['label']) ?>:</dt>
- <dd>
- <?php if (isset($_option['custom_view']) && $_option['custom_view']): ?>
- <?= /* @escapeNotVerified */ $block->getCustomizedOptionValue($_option) ?>
- <?php else: ?>
- <?php $_option = $block->getFormattedOption($_option['value']); ?>
- <?php $dots = 'dots' . uniqid(); ?>
- <?= $block->escapeHtml($_option['value']) ?><?php if (isset($_option['remainder']) && $_option['remainder']): ?> <span id="<?= /* @noEscape */ $dots; ?>"> ...</span>
- <?php $id = 'id' . uniqid(); ?>
- <span id="<?= /* @noEscape */ $id; ?>"><?= $block->escapeHtml($_option['remainder']) ?></span>
- <script>
- require(['prototype'], function() {
- $('<?= /* @noEscape */ $id; ?>').hide();
- $('<?= /* @noEscape */ $id; ?>').up().observe('mouseover', function(){$('<?= /* @noEscape */ $id; ?>').show();});
- $('<?= /* @noEscape */ $id; ?>').up().observe('mouseover', function(){$('<?= /* @noEscape */ $dots; ?>').hide();});
- $('<?= /* @noEscape */ $id; ?>').up().observe('mouseout', function(){$('<?= /* @noEscape */ $id; ?>').hide();});
- $('<?= /* @noEscape */ $id; ?>').up().observe('mouseout', function(){$('<?= /* @noEscape */ $dots; ?>').show();});
- });
- </script>
- <?php endif; ?>
- <?php endif; ?>
- </dd>
- <?php endforeach; ?>
- </dl>
- <?php endif; ?>
- <?= $block->escapeHtml($_item->getDescription()) ?>
- <?php endif; ?>
|