Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
container.phtml
Go to the documentation of this file.
1 <?php
7 ?>
8 
9 <div class="reports-content">
10  <?= $block->getChildHtml('grid.filter.form') ?>
11 </div>
12 
13 <?= $block->getGridHtml() ?>
14 
15 <script>
16 require([
17  'jquery',
18  'mage/backend/validation',
19  "prototype"
20 ], function(jQuery){
21 
22 //<![CDATA[
23  jQuery('#filter_form').mage('validation', {errorClass: 'mage-error'});
24  function filterFormSubmit() {
25  var filters = $$('#filter_form input', '#filter_form select'),
26  elements = [];
27 
28  for (var i in filters) {
29  if (filters[i].value && filters[i].value.length && !filters[i].disabled) {
30  elements.push(filters[i]);
31  }
32  }
33 
34  if (jQuery('#filter_form').valid()) {
35  setLocation('<?= /* @escapeNotVerified */ $block->getFilterUrl() ?>filter/'+
36  Base64.encode(Form.serializeElements(elements))+'/'
37  );
38  }
39  }
40 //]]>
41  window.filterFormSubmit = filterFormSubmit;
42 });
43 </script>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
$block
Definition: block.php:8
jQuery('.store-switcher .dropdown-menu li a').each(function()
Definition: switcher.phtml:203