12
12
?>
13
13
<?php if ($ block ->getCollection ()): ?>
14
14
<?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 ' )) ?> ">
25
25
<span class="field-row">
26
26
<label for="<?= $ block ->escapeHtmlAttr ($ block ->getSuffixId ('period_date_from ' )) ?> "
27
27
class="admin__control-support-text">
36
36
</span>
37
37
</span>
38
38
39
- <span class="field-row">
39
+ <span class="field-row">
40
40
<label for="<?= $ block ->escapeHtmlAttr ($ block ->getSuffixId ('period_date_to ' )) ?> "
41
41
class="admin__control-support-text">
42
42
<span><?= $ block ->escapeHtml (__ ('To ' )) ?> :</span>
50
50
</span>
51
51
</span>
52
52
53
- <span class="field-row admin__control-filter">
53
+ <span class="field-row admin__control-filter">
54
54
<label for="<?= $ block ->escapeHtmlAttr ($ block ->getSuffixId ('report_period ' )) ?> "
55
55
class="admin__control-support-text">
56
56
<span><?= $ block ->escapeHtml (__ ('Show By ' )) ?> :</span>
67
67
</select>
68
68
<?= $ block ->getRefreshButtonHtml () ?>
69
69
</span>
70
- <?php $ scriptString = <<<script
70
+ <?php $ scriptString = <<<script
71
71
72
72
require([
73
73
"jquery",
87
87
});
88
88
89
89
script ;
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>
97
98
</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>
98
104
</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>
105
105
</div>
106
106
<?php if ($ block ->canDisplayContainer ()): ?>
107
107
<?php $ useAjax = '' ;
@@ -126,8 +126,8 @@ script;
126
126
127
127
script ;
128
128
?>
129
- <?php if ($ block ->getDateFilterVisibility ()): ?>
130
- <?php $ scriptString .= <<<script
129
+ <?php if ($ block ->getDateFilterVisibility ()): ?>
130
+ <?php $ scriptString .= <<<script
131
131
132
132
{$ block ->escapeJs ($ block ->getJsObjectName ())}.doFilterCallback = validateFilterDate;
133
133
var period_date_from = $(' {$ block ->escapeJs ($ block ->getSuffixId ('period_date_from ' ))}');
@@ -151,10 +151,10 @@ script;
151
151
}
152
152
153
153
script ;
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
158
158
159
159
/* Overwrite function from switcher.phtml widget*/
160
160
switchStore = function(obj) {
@@ -185,8 +185,8 @@ script;
185
185
}
186
186
187
187
script ;
188
- ?>
189
- <?php endif ; ?>
188
+ ?>
189
+ <?php endif ; ?>
190
190
<?php $ scriptString .= <<<script
191
191
192
192
//]]>
0 commit comments