|
5 | 5 | */ |
6 | 6 |
|
7 | 7 | /** @var \Magento\Sales\Block\Adminhtml\Order\View\Tab\History $block */ |
8 | | -/** @var \Magento\Framework\Escaper $escaper */ |
9 | 8 | ?> |
10 | 9 | <section class="admin__page-section edit-order-comments"> |
11 | 10 | <ul class="note-list"> |
12 | | - <?php foreach ($block->getFullHistory() as $_item): ?> |
| 11 | + <?php foreach ($block->getFullHistory() as $_item) : ?> |
13 | 12 | <li class="note-list-item"> |
14 | 13 | <span class="note-list-date"><?= /* @noEscape */ $block->getItemCreatedAt($_item) ?></span> |
15 | 14 | <span class="note-list-time"><?= /* @noEscape */ $block->getItemCreatedAt($_item, 'time') ?></span> |
16 | 15 | <span class="note-list-status"><?= /* @noEscape */ $block->getItemTitle($_item) ?></span> |
17 | | - <?php if ($block->isItemNotified($_item, false)): ?> |
| 16 | + <?php if ($block->isItemNotified($_item, false)) : ?> |
18 | 17 | <span class="note-list-customer"> |
19 | | - <?= $escaper->escapeHtml(__('Customer')) ?> |
20 | | - <?php if ($block->isCustomerNotificationNotApplicable($_item)): ?> |
21 | | - <span class="note-list-customer-notapplicable"> |
22 | | - <?= $escaper->escapeHtml(__('Notification Not Applicable')) ?> |
23 | | - </span> |
24 | | - <?php elseif ($block->isItemNotified($_item)): ?> |
25 | | - <span class="note-list-customer-notified"> |
26 | | - <?= $escaper->escapeHtml(__('Notified')) ?> |
27 | | - </span> |
28 | | - <?php else: ?> |
29 | | - <span class="note-list-customer-not-notified"> |
30 | | - <?= $escaper->escapeHtml(__('Not Notified')) ?> |
31 | | - </span> |
| 18 | + <?= $block->escapeHtml(__('Customer')) ?> |
| 19 | + <?php if ($block->isCustomerNotificationNotApplicable($_item)) : ?> |
| 20 | + <span class="note-list-customer-notapplicable"><?= $block->escapeHtml(__('Notification Not Applicable')) ?></span> |
| 21 | + <?php elseif ($block->isItemNotified($_item)) : ?> |
| 22 | + <span class="note-list-customer-notified"><?= $block->escapeHtml(__('Notified')) ?></span> |
| 23 | + <?php else : ?> |
| 24 | + <span class="note-list-customer-not-notified"><?= $block->escapeHtml(__('Not Notified')) ?></span> |
32 | 25 | <?php endif; ?> |
33 | 26 | </span> |
34 | 27 | <?php endif; ?> |
|
37 | 30 | </ul> |
38 | 31 | <div class="edit-order-comments-block"> |
39 | 32 | <div class="edit-order-comments-block-title"> |
40 | | - <?= $escaper->escapeHtml(__('Notes for this Order')) ?> |
| 33 | + <?= $block->escapeHtml(__('Notes for this Order')) ?> |
41 | 34 | </div> |
42 | | - <?php foreach ($block->getFullHistory() as $_item): ?> |
43 | | - <?php if ($_comment = $block->getItemComment($_item)): ?> |
| 35 | + <?php foreach ($block->getFullHistory() as $_item) : ?> |
| 36 | + <?php if ($_comment = $block->getItemComment($_item)) : ?> |
44 | 37 | <div class="comments-block-item"> |
45 | 38 | <div class="comments-block-item-comment"> |
46 | | - <?= /* @noEscape */ $escaper->escapeHtml($_comment) ?> |
| 39 | + <?= /* @noEscape */ $_comment ?> |
47 | 40 | </div> |
48 | 41 | <span class="comments-block-item-date-time"> |
49 | | - <?= $escaper->escapeHtml(__('Comment added')) ?> |
| 42 | + <?= $block->escapeHtml(__('Comment added')) ?> |
50 | 43 | <?= /* @noEscape */ $block->getItemCreatedAt($_item) ?> |
51 | 44 | <?= /* @noEscape */ $block->getItemCreatedAt($_item, 'time') ?> |
52 | 45 | </span> |
|
0 commit comments