diff --git a/Block/Adminhtml/Slider/Edit/Tab/Banner.php b/Block/Adminhtml/Slider/Edit/Tab/Banner.php index 3682c96..ec4eb3d 100644 --- a/Block/Adminhtml/Slider/Edit/Tab/Banner.php +++ b/Block/Adminhtml/Slider/Edit/Tab/Banner.php @@ -196,6 +196,7 @@ protected function _prepareColumns() 'validate_class' => 'validate-number validate-zero-or-greater validate-digits', 'index' => 'position', 'editable' => true, + 'edit_only' => true, ]); return $this; diff --git a/Block/Adminhtml/Slider/Edit/Tab/Design.php b/Block/Adminhtml/Slider/Edit/Tab/Design.php index 29f9950..dc84ef6 100644 --- a/Block/Adminhtml/Slider/Edit/Tab/Design.php +++ b/Block/Adminhtml/Slider/Edit/Tab/Design.php @@ -159,7 +159,8 @@ protected function _prepareForm() $timeout = $fieldset->addField('autoplayTimeout', 'text', [ 'name' => 'autoplayTimeout', 'label' => __('Autoplay Time-Out'), - 'title' => __('Autoplay Time-Out') + 'title' => __('Autoplay Time-Out'), + 'class' => 'validate-number validate-zero-or-greater validate-digits', ]); $dependencies = $this->getLayout()->createBlock(Dependence::class) diff --git a/composer.json b/composer.json index 19f73a9..f4bf67d 100644 --- a/composer.json +++ b/composer.json @@ -2,10 +2,10 @@ "name": "mageplaza/module-banner-slider", "description": "Magento 2 Banner Slider extension", "require": { - "mageplaza/module-core": "^1.4.5" + "mageplaza/module-core": "^1.4.12" }, "type": "magento2-module", - "version": "4.0.2", + "version": "4.0.3", "license": "proprietary", "authors": [ { diff --git a/view/adminhtml/web/template/grid/cells/html.html b/view/adminhtml/web/template/grid/cells/html.html index b9198fb..40aa55a 100644 --- a/view/adminhtml/web/template/grid/cells/html.html +++ b/view/adminhtml/web/template/grid/cells/html.html @@ -1,24 +1,24 @@ - - -
- \ No newline at end of file + + +
+