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 @@ + + Magento\ReCaptchaAdminUi\Block\Adminhtml\System\Config\Form\Field\Notice + @@ -35,6 +39,10 @@ + + Magento\ReCaptchaAdminUi\Block\Adminhtml\System\Config\Form\Field\Notice + diff --git a/ReCaptchaAdminUi/view/adminhtml/web/css/source/_module.less b/ReCaptchaAdminUi/view/adminhtml/web/css/source/_module.less new file mode 100644 index 00000000..d4623ef1 --- /dev/null +++ b/ReCaptchaAdminUi/view/adminhtml/web/css/source/_module.less @@ -0,0 +1,10 @@ +/** + * Copyright © Magento, Inc. All rights reserved. + * See COPYING.txt for license details. + */ +.recaptcha_backend_type_for_recaptcha_backend_info_heading_notice, +.recaptcha_frontend_type_for_recaptcha_frontend_info_heading_notice { + strong { + color: @grid-severity-critical-color; + } +} diff --git a/ReCaptchaUser/etc/adminhtml/system.xml b/ReCaptchaUser/etc/adminhtml/system.xml index e90f4d4a..8bb4d234 100644 --- a/ReCaptchaUser/etc/adminhtml/system.xml +++ b/ReCaptchaUser/etc/adminhtml/system.xml @@ -10,13 +10,13 @@
- Magento\ReCaptchaAdminUi\Model\OptionSource\Type - Magento\ReCaptchaAdminUi\Model\OptionSource\Type