10 <?php
if ($_entity =
$block->getEntity()): ?>
11 <div
id=
"comments_block" class=
"edit-order-comments">
12 <div
class=
"order-history-block">
13 <div
class=
"admin__field field-row">
14 <label
class=
"admin__field-label" 15 for=
"history_comment"><?=
__(
'Comment Text') ?></label>
16 <div
class=
"admin__field-control">
17 <textarea
name=
"comment[comment]" 18 class=
"admin__control-textarea" 21 id=
"history_comment"></textarea>
24 <div
class=
"admin__field">
25 <div
class=
"order-history-comments-options">
26 <?php
if (
$block->canSendCommentEmail()): ?>
27 <div
class=
"admin__field admin__field-option">
28 <input
name=
"comment[is_customer_notified]" 30 class=
"admin__control-checkbox" 33 <label
class=
"admin__field-label" 34 for=
"history_notify"><?=
__(
'Notify Customer by Email') ?></label>
37 <div
class=
"admin__field admin__field-option">
38 <input
name=
"comment[is_visible_on_front]" 41 class=
"admin__control-checkbox" 43 <label
class=
"admin__field-label" 44 for=
"history_visible"> <?=
__(
'Visible on Storefront') ?></label>
47 <div
class=
"order-history-comments-actions">
48 <?=
$block->getChildHtml(
'submit_button') ?>
53 <ul
class=
"note-list">
54 <?php
foreach ($_entity->getCommentsCollection(
true) as $_comment): ?>
56 <span
class=
"note-list-date"><?=
$block->formatDate($_comment->getCreatedAt(), \IntlDateFormatter::MEDIUM) ?></span>
57 <span
class=
"note-list-time"><?=
$block->formatTime($_comment->getCreatedAt(), \IntlDateFormatter::MEDIUM) ?></span>
58 <span
class=
"note-list-customer">
60 <?php
if ($_comment->getIsCustomerNotified()): ?>
61 <span
class=
"note-list-customer-notified"><?=
__(
'Notified') ?></span>
63 <span
class=
"note-list-customer-not-notified"><?=
__(
'Not Notified') ?></span>
66 <div
class=
"note-list-comment"><?=
$block->escapeHtml($_comment->getComment(), [
'b',
'br',
'strong',
'i',
'u',
'a']) ?></div>
72 require([
'prototype'],
function(){
74 submitComment =
function() {
75 submitAndReloadArea($(
'comments_block').parentNode,
'<?= /* @escapeNotVerified */ $block->getSubmitUrl() ?>')
78 if ($(
'submit_comment_button')) {
79 $(
'submit_comment_button').observe(
'click', submitComment);
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
if( $block->canShowBlock())( 'Shop By') ?></strong ></div >< div classif( $block->getLayer() ->getState() ->getFilters())() ?>" class endif