Skip to content

Commit d0fff40

Browse files
committed
MC-17814: Insert Widget Slide Out
1 parent 2795556 commit d0fff40

File tree

2 files changed

+4
-0
lines changed
  • app/code/Magento

2 files changed

+4
-0
lines changed

app/code/Magento/Backend/view/adminhtml/templates/widget/form/renderer/fieldset.phtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ if ($isField) {
5353

5454
<?php if (!$element->getNoContainer()) : ?>
5555
<fieldset class="<?= $block->escapeHtmlAttr($cssClass) ?>" id="<?= $block->escapeHtmlAttr($id) ?>">
56+
<?php if (strlen($element->getBeforeElementHtml())) : ?>
57+
<?= $element->getBeforeElementHtml() ?>
58+
<?php endif ?>
5659
<?php if ($element->getLegend() && !$isWrapped) : ?>
5760
<legend class="<?= /* @noEscape */ $isField ? 'label admin__field-label' : 'admin__legend legend' ?>">
5861
<span><?= $block->escapeHtml($element->getLegend()) ?></span>

app/code/Magento/Widget/Block/Adminhtml/Widget/Form.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ protected function _prepareForm()
5353
$fieldset = $form->addFieldset(
5454
'base_fieldset',
5555
[
56+
'before_element_html' => '<div data-role="messages"></div>',
5657
'comment' => __('Inserting a widget does not create a widget instance.'),
5758
]
5859
);

0 commit comments

Comments
 (0)