diff --git a/ReCaptchaAdminUi/Block/Adminhtml/System/Config/Form/Field/Notice.php b/ReCaptchaAdminUi/Block/Adminhtml/System/Config/Form/Field/Notice.php new file mode 100644 index 00000000..9a3b6032 --- /dev/null +++ b/ReCaptchaAdminUi/Block/Adminhtml/System/Config/Form/Field/Notice.php @@ -0,0 +1,34 @@ +
' . '' . __('Important:') + . ' ' . '' . ' ' . __('Please note, for reCAPTCHA to be enabled, + the valid "Google API Website Key" and "Google API Secret Key" fields are required.') . '' . '
'; + + return $this->_decorateRowHtml($element, $html); + } +} diff --git a/ReCaptchaAdminUi/composer.json b/ReCaptchaAdminUi/composer.json index 7e089c0b..607ae8a9 100644 --- a/ReCaptchaAdminUi/composer.json +++ b/ReCaptchaAdminUi/composer.json @@ -4,6 +4,7 @@ "require": { "php": "~7.3.0||~7.4.0", "magento/framework": "*", + "magento/module-config": "*", "magento/module-re-captcha-ui": "*" }, "type": "magento2-module", diff --git a/ReCaptchaAdminUi/etc/adminhtml/system.xml b/ReCaptchaAdminUi/etc/adminhtml/system.xml index 5666470f..f3cfdea0 100644 --- a/ReCaptchaAdminUi/etc/adminhtml/system.xml +++ b/ReCaptchaAdminUi/etc/adminhtml/system.xml @@ -22,6 +22,10 @@