123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345 |
- name: Form
- slug: form
- type: plugin
- version: 7.2.0
- description: Enables forms handling and processing
- icon: check-square
- author:
- name: Team Grav
- email: devs@getgrav.org
- url: https://getgrav.org
- keywords: plugin, form
- homepage: https://github.com/getgrav/grav-plugin-form
- bugs: https://github.com/getgrav/grav-plugin-form/issues
- license: MIT
- dependencies:
- - { name: grav, version: '>=1.7.41' }
- form:
- validation: strict
- fields:
- enabled:
- type: hidden
- label: PLUGIN_ADMIN.PLUGIN_STATUS
- highlight: 1
- default: 0
- options:
- 1: PLUGIN_ADMIN.ENABLED
- 0: PLUGIN_ADMIN.DISABLED
- validate:
- type: bool
- general:
- type: section
- title: PLUGIN_FORM.GENERAL
- fields:
- built_in_css:
- type: toggle
- label: PLUGIN_FORM.USE_BUILT_IN_CSS
- highlight: 1
- default: 1
- options:
- 1: PLUGIN_ADMIN.ENABLED
- 0: PLUGIN_ADMIN.DISABLED
- validate:
- type: bool
- inline_css:
- type: toggle
- label: PLUGIN_FORM.USE_INLINE_CSS
- highlight: 1
- default: 1
- options:
- 1: PLUGIN_ADMIN.ENABLED
- 0: PLUGIN_ADMIN.DISABLED
- validate:
- type: bool
- refresh_prevention:
- type: toggle
- label: PLUGIN_FORM.REFRESH_PREVENTION
- help: PLUGIN_FORM.REFRESH_PREVENTION_HELP
- highlight: 1
- default: 0
- options:
- 1: PLUGIN_ADMIN.ENABLED
- 0: PLUGIN_ADMIN.DISABLED
- validate:
- type: bool
- client_side_validation:
- type: toggle
- label: PLUGIN_FORM.CLIENT_SIDE_VALIDATION
- help: PLUGIN_FORM.CLIENT_SIDE_VALIDATION_HELP
- highlight: 1
- default: 1
- options:
- 1: PLUGIN_ADMIN.ENABLED
- 0: PLUGIN_ADMIN.DISABLED
- validate:
- type: bool
- inline_errors:
- type: toggle
- label: PLUGIN_FORM.INLINE_ERRORS
- help: PLUGIN_FORM.INLINE_ERRORS_HELP
- highlight: 0
- default: 0
- options:
- 1: PLUGIN_ADMIN.ENABLED
- 0: PLUGIN_ADMIN.DISABLED
- validate:
- type: bool
- files:
- type: section
- title: PLUGIN_FORM.FILES
- fields:
- files.multiple:
- type: toggle
- label: PLUGIN_FORM.ALLOW_MULTIPLE
- help: PLUGIN_FORM.ALLOW_MULTIPLE_HELP
- highlight: 1
- default: 0
- options:
- 1: PLUGIN_ADMIN.ENABLED
- 0: PLUGIN_ADMIN.DISABLED
- validate:
- type: bool
- files.limit:
- type: text
- size: x-small
- label: PLUGIN_FORM.LIMIT
- help: PLUGIN_FORM.LIMIT_HELP
- default: 10
- validate:
- type: number
- min: 1
- files.destination:
- type: text
- size: large
- label: PLUGIN_FORM.DESTINATION
- help: PLUGIN_FORM.DESTINATION_HELP
- default: '@self'
- files.accept:
- type: selectize
- size: large
- label: PLUGIN_FORM.ACCEPT
- help: PLUGIN_FORM.ACCEPT_HELP
- classes: fancy
- default:
- - image/*
- validate:
- type: commalist
- files.filesize:
- type: text
- label: PLUGIN_FORM.FILESIZE
- help: PLUGIN_FORM.FILESIZE_HELP
- size: x-small
- default: 5
- validate:
- type: number
- min: 0
- files.avoid_overwriting:
- type: toggle
- label: PLUGIN_FORM.AVOID_OVERWRITING
- help: PLUGIN_FORM.AVOID_OVERWRITING_HELP
- highlight: 0
- default: 0
- options:
- 1: PLUGIN_ADMIN.ENABLED
- 0: PLUGIN_ADMIN.DISABLED
- validate:
- type: bool
- files.random_name:
- type: toggle
- label: PLUGIN_FORM.RANDOM_NAME
- help: PLUGIN_FORM.RANDOM_NAME_HELP
- highlight: 0
- default: 0
- options:
- 1: PLUGIN_ADMIN.ENABLED
- 0: PLUGIN_ADMIN.DISABLED
- validate:
- type: bool
- recaptcha:
- type: section
- title: PLUGIN_FORM.RECAPTCHA
- fields:
- recaptcha.version:
- type: select
- label: PLUGIN_FORM.RECAPTCHA_VERSION
- default: 2-checkbox
- options:
- 2-checkbox: PLUGIN_FORM.RECAPTCHA_VERSION_V2_CHECKBOX
- 2-invisible: PLUGIN_FORM.RECAPTCHA_VERSION_V2_INVISIBLE
- 3: PLUGIN_FORM.RECAPTCHA_VERSION_V3_LATEST
- recaptcha.theme:
- type: select
- label: PLUGIN_FORM.RECAPTCHA_THEME
- default: light
- options:
- light: PLUGIN_FORM.RECAPTCHA_THEME_LIGHT
- dark: PLUGIN_FORM.RECAPTCHA_THEME_DARK
- recaptcha.site_key:
- recaptcha.site_key:
- type: text
- label: PLUGIN_FORM.RECAPTCHA_SITE_KEY
- help: PLUGIN_FORM.RECAPTCHA_SITE_KEY_HELP
- default: ''
- recaptcha.secret_key:
- type: text
- label: PLUGIN_FORM.RECAPTCHA_SECRET_KEY
- 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
- fields:
- basic_captcha.type:
- type: elements
- label: PLUGIN_FORM.BASIC_CAPTCHA_TYPE
- default: 'characters'
- size: medium
- options:
- characters: Random Characters
- math: Math Puzzle
- fields:
- characters:
- type: element
- fields:
- basic_captcha.chars.length:
- type: range
- label: PLUGIN_FORM.BASIC_CAPTCHA_LENGTH
- default: 6
- validate:
- min: 4
- max: 12
- append: characters
- basic_captcha.chars.font:
- type: select
- label: PLUGIN_FORM.BASIC_CAPTCHA_FONT
- default: zxx-noise.ttf
- options:
- 'zxx-noise.ttf': zxx-Noise
- 'zxx-xed.ttf': zxx-Xed
- 'zxx-camo.ttf': zxx-Camo
- 'zxx-sans.ttf': zxx-Sans
- basic_captcha.chars.size:
- type: range
- label: PLUGIN_FORM.BASIC_CAPTCHA_SIZE
- default: 24
- append: px
- validate:
- min: 12
- max: 32
- step: 2
- basic_captcha.chars.bg:
- type: colorpicker
- size: small
- label: PLUGIN_FORM.BASIC_CAPTCHA_BG_COLOR
- default: '#ffffff'
- basic_captcha.chars.text:
- type: colorpicker
- size: small
- label: PLUGIN_FORM.BASIC_CAPTCHA_TEXT_COLOR
- default: '#000000'
- basic_captcha.chars.start_x:
- type: number
- label: PLUGIN_FORM.BASIC_CAPTCHA_START_X
- default: 5
- append: px
- size: small
- validate:
- min: 0
- type: number
- basic_captcha.chars.start_y:
- type: number
- label: PLUGIN_FORM.BASIC_CAPTCHA_START_Y
- default: 30
- append: px
- size: small
- validate:
- min: 0
- type: number
- basic_captcha.chars.box_width:
- type: number
- label: PLUGIN_FORM.BASIC_CAPTCHA_BOX_WIDTH
- default: 135
- append: px
- size: small
- validate:
- min: 0
- type: number
- basic_captcha.chars.box_height:
- type: number
- label: PLUGIN_FORM.BASIC_CAPTCHA_BOX_HEIGHT
- default: 40
- append: px
- size: small
- validate:
- min: 0
- type: number
- math:
- type: element
- fields:
- basic_captcha.math.min:
- type: number
- label: PLUGIN_FORM.BASIC_CAPTCHA_MATH_MIN
- default: 1
- size: small
- validate:
- min: 0
- type: number
- basic_captcha.math.max:
- type: number
- label: PLUGIN_FORM.BASIC_CAPTCHA_MATH_MAX
- default: 10
- size: small
- validate:
- min: 1
- type: number
- basic_captcha.math.operators:
- type: selectize
- selectize:
- options:
- - value: '+'
- text: '+ Addition'
- - value: '-'
- text: '- Subtraction'
- - value: '*'
- text: 'x Multiplication'
- - value: '/'
- text: '/ Division'
- label: PLUGIN_FORM.BASIC_CAPTCHA_MATH_OPERATORS
- validate:
- type: commalist
|