# You must use a tab-size of 4 spaces to edit this file.
---
site_settings:
	setting_group: api_keys
	title: Editing captcha settings
	tabs:
		captcha_picture:
			label: "Google reCaptcha"
			edit_mode:
				enabled: Yes
				priv: _PRIV_EDIT_SITE_SETTING
				on: No
			fields:
				description:
					full_width: Yes
					snippet:
						html: |
							This tab contains settings for reCaptcha.
							This is a captcha that is used by some plugins in Zenario (for example User Forms).
				captcha_status_and_version:
					site_setting:
						name: captcha_status_and_version
					type: radios
					value: not_enabled
					values:
						not_enabled:
							label: "Google reCaptcha not enabled"
							ord: 1
						enabled_v2:
							label: "Google reCaptcha v2"
							ord: 2
					redraw_onchange: true
				google_recaptcha_site_key:
					indent: 1
					site_setting:
						name: google_recaptcha_site_key
					label: 'Site key:'
					type: text
					value: ""
					note_below: |
						The site key to use for reCaptcha.
						Sign-up for a site key at
						<a href="https://www.google.com/recaptcha" target="_blank"> https://www.google.com/recaptcha</a>.
					visible_if: lib.valueIn('captcha_status_and_version', 'enabled_v2')
					validation:
						required_if_not_hidden: "Please enter the site key."
				google_recaptcha_secret_key:
					indent: 1
					site_setting:
						name: google_recaptcha_secret_key
					label: 'Secret key:'
					type: text
					value: ""
					note_below: |
						The secret key to use for reCaptcha.
					visible_if: lib.valueIn('captcha_status_and_version', 'enabled_v2')
					validation:
						required_if_not_hidden: "Please enter the secret key."
				google_recaptcha_widget_theme:
					indent: 1
					site_setting:
						name: google_recaptcha_widget_theme
					label: 'Theme:'
					type: select
					value: light
					values:
						light: 
							ord: "1"
							label: "Light"
						dark: Dark
							ord: "2"
							label: "Dark"
					note_below: The theme to use for reCaptcha.
					visible_if: lib.valueIn('captcha_status_and_version', 'enabled_v2')
