File tree Expand file tree Collapse file tree
view/adminhtml/templates/grid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ if (empty($gridFilters)) {
2828 </div>
2929</div>
3030
31+ <?php if (!empty ($ gridFilterValues )): ?>
3132<div class="admin__data-grid-filters-current _show">
3233 <div class="admin__current-filters-title-wrap">
3334 <span class="admin__current-filters-title">
@@ -38,14 +39,14 @@ if (empty($gridFilters)) {
3839 <ul class="admin__current-filters-list" data-role="filter-list">
3940 <?php foreach ($ gridFilterValues as $ gridFilterName => $ gridFilterValue ): ?>
4041 <li>
41- <span class="label"><?= $ gridFilterName ?> </span>: <span class="preview"><?= $ gridFilterValue ?> </span>
42+ <span class="label"><?= $ escaper ->escapeHtml ($ gridFilterName ) ?> </span>:
43+ <span class="preview"><?= $ escaper ->escapeHtml ($ gridFilterValue ) ?> </span>
4244 </li>
4345 <?php endforeach ; ?>
4446 </ul>
4547 </div>
4648</div>
47-
48-
49+ <?php endif ; ?>
4950
5051<div x-cloak x-show="showFilters" class="admin__data-grid-filters-wrap _show">
5152 <fieldset class="admin__fieldset admin__data-grid-filters">
@@ -56,15 +57,13 @@ if (empty($gridFilters)) {
5657 <?php endforeach ; ?>
5758 </fieldset>
5859
59- <!--
60+ <?php if (! empty ( $ gridFilterValues )): ?>
6061 <div class="admin__data-grid-filters-footer">
6162 <div class="admin__footer-main-actions">
62-
63- <button class="action-tertiary" type="button" @click.prevent="toggleFilters">
64- <span>Reset all filters</span>
63+ <button class="action-tertiary" type="button" @click="toggleFilters">
64+ <span>Clear all filters</span>
6565 </button>
66-
6766 </div>
6867 </div>
69- -- >
68+ <?php endif ; ? >
7069</div>
You can’t perform that action at this time.
0 commit comments