diff --git a/Block/Adminhtml/Form/Field/Usps.php b/Block/Adminhtml/Form/Field/Usps.php index 1def024..b0cff27 100644 --- a/Block/Adminhtml/Form/Field/Usps.php +++ b/Block/Adminhtml/Form/Field/Usps.php @@ -9,6 +9,7 @@ namespace Siteation\StoreInfoUsps\Block\Adminhtml\Form\Field; use Magento\Config\Block\System\Config\Form\Field\FieldArray\AbstractFieldArray; +use Magento\Framework\Data\Form\Element\AbstractElement; class Usps extends AbstractFieldArray { @@ -22,4 +23,28 @@ protected function _prepareToRender() $this->_addAfter = false; $this->_addButtonLabel = __('Add'); } + + protected function _getElementHtml(AbstractElement $element): string + { + $id = $element['html_id']; + $html = parent::_getElementHtml($element); + + $script = ""; + + $html .= $script; + + return $html; + } } diff --git a/CHANGELOG.md b/CHANGELOG.md index a3de892..21a3db4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [Unreleased]: https://github.com/Siteation/magento2-storeinfo/compare/1.0.0...main +### Added +- Option to drag the usp item position + ### Fixed - Double landmark names