1212?>
1313<?php if ($ block ->getCollection ()): ?>
1414 <?php if ($ block ->canDisplayContainer ()): ?>
15- <div id="<?= $ block ->escapeHtmlAttr ($ block ->getId ()) ?> ">
16- <?php else : ?>
17- <?= $ block ->getLayout ()->getMessagesBlock ()->getGroupedHtml () ?>
18- <?php endif ; ?>
19- <?php if ($ block ->getStoreSwitcherVisibility () || $ block ->getDateFilterVisibility ()): ?>
20- <div class="admin__data-grid-header admin__data-grid-toolbar">
21- <div class="admin__data-grid-header-row">
22- <?php if ($ block ->getDateFilterVisibility ()): ?>
23- <div class="admin__filter-actions" data-role="filter-form"
24- id="<?= $ block ->escapeHtmlAttr ($ block ->getSuffixId ('period_date_range ' )) ?> ">
15+ <div id="<?= $ block ->escapeHtmlAttr ($ block ->getId ()) ?> ">
16+ <?php else : ?>
17+ <?= $ block ->getLayout ()->getMessagesBlock ()->getGroupedHtml () ?>
18+ <?php endif ; ?>
19+ <?php if ($ block ->getStoreSwitcherVisibility () || $ block ->getDateFilterVisibility ()): ?>
20+ <div class="admin__data-grid-header admin__data-grid-toolbar">
21+ <div class="admin__data-grid-header-row">
22+ <?php if ($ block ->getDateFilterVisibility ()): ?>
23+ <div class="admin__filter-actions" data-role="filter-form"
24+ id="<?= $ block ->escapeHtmlAttr ($ block ->getSuffixId ('period_date_range ' )) ?> ">
2525 <span class="field-row">
2626 <label for="<?= $ block ->escapeHtmlAttr ($ block ->getSuffixId ('period_date_from ' )) ?> "
2727 class="admin__control-support-text">
3636 </span>
3737 </span>
3838
39- <span class="field-row">
39+ <span class="field-row">
4040 <label for="<?= $ block ->escapeHtmlAttr ($ block ->getSuffixId ('period_date_to ' )) ?> "
4141 class="admin__control-support-text">
4242 <span><?= $ block ->escapeHtml (__ ('To ' )) ?> :</span>
5050 </span>
5151 </span>
5252
53- <span class="field-row admin__control-filter">
53+ <span class="field-row admin__control-filter">
5454 <label for="<?= $ block ->escapeHtmlAttr ($ block ->getSuffixId ('report_period ' )) ?> "
5555 class="admin__control-support-text">
5656 <span><?= $ block ->escapeHtml (__ ('Show By ' )) ?> :</span>
6767 </select>
6868 <?= $ block ->getRefreshButtonHtml () ?>
6969 </span>
70- <?php $ scriptString = <<<script
70+ <?php $ scriptString = <<<script
7171
7272 require([
7373 "jquery",
8787 });
8888
8989script ;
90- ?>
91- <?= /* @noEscape */ $ secureRenderer ->renderTag ('script ' , [], $ scriptString , false ) ?>
92- </div>
93- <?php endif ; ?>
94- <?php if ($ block ->getChildBlock ('grid.export ' )): ?>
95- <?= $ block ->getChildHtml ('grid.export ' ) ?>
96- <?php endif ; ?>
90+ ?>
91+ <?= /* @noEscape */ $ secureRenderer ->renderTag ('script ' , [], $ scriptString , false ) ?>
92+ </div>
93+ <?php endif ; ?>
94+ <?php if ($ block ->getChildBlock ('grid.export ' )): ?>
95+ <?= $ block ->getChildHtml ('grid.export ' ) ?>
96+ <?php endif ; ?>
97+ </div>
9798 </div>
99+ <?php endif ; ?>
100+ <div class="admin__data-grid-wrap admin__data-grid-wrap-static">
101+ <table class="data-grid" id="<?= $ block ->escapeHtmlAttr ($ block ->getId ()) ?> _table">
102+ <?= $ block ->getChildHtml ('grid.columnSet ' ) ?>
103+ </table>
98104 </div>
99- <?php endif ; ?>
100- <div class="admin__data-grid-wrap admin__data-grid-wrap-static">
101- <table class="data-grid" id="<?= $ block ->escapeHtmlAttr ($ block ->getId ()) ?> _table">
102- <?= $ block ->getChildHtml ('grid.columnSet ' ) ?>
103- </table>
104- </div>
105105 </div>
106106 <?php if ($ block ->canDisplayContainer ()): ?>
107107 <?php $ useAjax = '' ;
@@ -126,8 +126,8 @@ script;
126126
127127script ;
128128 ?>
129- <?php if ($ block ->getDateFilterVisibility ()): ?>
130- <?php $ scriptString .= <<<script
129+ <?php if ($ block ->getDateFilterVisibility ()): ?>
130+ <?php $ scriptString .= <<<script
131131
132132 {$ block ->escapeJs ($ block ->getJsObjectName ())}.doFilterCallback = validateFilterDate;
133133 var period_date_from = $(' {$ block ->escapeJs ($ block ->getSuffixId ('period_date_from ' ))}');
@@ -151,10 +151,10 @@ script;
151151 }
152152
153153script ;
154- ?>
155- <?php endif ;?>
156- <?php if ($ block ->getStoreSwitcherVisibility ()): ?>
157- <?php $ scriptString .= <<<script
154+ ?>
155+ <?php endif ;?>
156+ <?php if ($ block ->getStoreSwitcherVisibility ()): ?>
157+ <?php $ scriptString .= <<<script
158158
159159 /* Overwrite function from switcher.phtml widget*/
160160 switchStore = function(obj) {
@@ -185,8 +185,8 @@ script;
185185 }
186186
187187script ;
188- ?>
189- <?php endif ; ?>
188+ ?>
189+ <?php endif ; ?>
190190 <?php $ scriptString .= <<<script
191191
192192 //]]>
0 commit comments