Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
fieldset.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 <?php $_element = $block->getElement() ?>
12 <?php $_jsObjectName = $block->getFieldSetId() != null ? $block->getFieldSetId() : $_element->getHtmlId() ?>
13 <div class="rule-tree">
14  <fieldset id="<?= /* @escapeNotVerified */ $_jsObjectName ?>" <?= /* @escapeNotVerified */ $_element->serialize(['class']) ?> class="fieldset">
15  <legend class="legend"><span><?= /* @escapeNotVerified */ $_element->getLegend() ?></span></legend>
16  <br>
17  <?php if ($_element->getComment()): ?>
18  <div class="messages">
19  <div class="message message-notice"><?= $block->escapeHtml($_element->getComment()) ?></div>
20  </div>
21  <?php endif; ?>
22  <div class="rule-tree-wrapper">
23  <?= $_element->getChildrenHtml() ?>
24  </div>
25  </fieldset>
26 </div>
27 <script>
28 require([
29  "Magento_Rule/rules",
30  "prototype"
31 ], function(VarienRulesForm){
32 
33 window.<?= /* @escapeNotVerified */ $_jsObjectName ?> = new VarienRulesForm('<?= /* @escapeNotVerified */ $_jsObjectName ?>', '<?= /* @escapeNotVerified */ $block->getNewChildUrl() ?>');
34 <?php if ($_element->getReadonly()): ?>
35  <?= $_element->getHtmlId() ?>.setReadonly(true);
36 <?php endif; ?>
37 
38 });
39 </script>
$block
Definition: block.php:8
endif
Definition: fieldset.phtml:64
$_element
Definition: vat.phtml:11