diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e3a478..2d9c678 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v7.1.1 +## 11/29/2022 + +1. [](#bugfix) + * Fix missing blueprint entries for Turnstile configuration [#583](https://github.com/getgrav/grav-plugin-form/issues/583) + # v7.1.0 ## 11/16/2022 diff --git a/blueprints.yaml b/blueprints.yaml index 776ee88..721487a 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,7 +1,7 @@ name: Form slug: form type: plugin -version: 7.1.0 +version: 7.1.1 description: Enables forms handling and processing icon: check-square author: @@ -197,6 +197,29 @@ form: help: PLUGIN_FORM.RECAPTCHA_SECRET_KEY_HELP default: '' + turnstile_captcha: + type: section + title: PLUGIN_FORM.TURNSTILE_CAPTCHA + + fields: + turnstile.theme: + type: select + label: PLUGIN_FORM.RECAPTCHA_THEME + default: light + options: + light: PLUGIN_FORM.RECAPTCHA_THEME_LIGHT + dark: PLUGIN_FORM.RECAPTCHA_THEME_DARK + turnstile.site_key: + type: text + label: PLUGIN_FORM.RECAPTCHA_SITE_KEY + help: PLUGIN_FORM.RECAPTCHA_SITE_KEY_HELP + default: '' + turnstile.secret_key: + type: text + label: PLUGIN_FORM.RECAPTCHA_SECRET_KEY + help: PLUGIN_FORM.RECAPTCHA_SECRET_KEY_HELP + default: '' + basic_captcha: type: section title: PLUGIN_FORM.BASIC_CAPTCHA diff --git a/form.yaml b/form.yaml index ae8cecf..29793ca 100644 --- a/form.yaml +++ b/form.yaml @@ -19,7 +19,6 @@ recaptcha: site_key: secret_key: turnstile: - widget: managed # options: [managed | non-interactive | invisible] theme: light # options: [light | dark] site_key: secret_key: diff --git a/languages.yaml b/languages.yaml index 84c73ff..c6a288f 100644 --- a/languages.yaml +++ b/languages.yaml @@ -87,6 +87,7 @@ en: BASIC_CAPTCHA_MATH_MIN: "Minimum number" BASIC_CAPTCHA_MATH_MAX: "Maximum number" BASIC_CAPTCHA_MATH_OPERATORS: "Mathematical operators (randomized)" + TURNSTILE_CAPTCHA: "Cloudflare Turnstile Captcha" eu: PLUGIN_FORM: