blueprints.yaml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. name: Form
  2. slug: form
  3. type: plugin
  4. version: 7.2.0
  5. description: Enables forms handling and processing
  6. icon: check-square
  7. author:
  8. name: Team Grav
  9. email: devs@getgrav.org
  10. url: https://getgrav.org
  11. keywords: plugin, form
  12. homepage: https://github.com/getgrav/grav-plugin-form
  13. bugs: https://github.com/getgrav/grav-plugin-form/issues
  14. license: MIT
  15. dependencies:
  16. - { name: grav, version: '>=1.7.41' }
  17. form:
  18. validation: strict
  19. fields:
  20. enabled:
  21. type: hidden
  22. label: PLUGIN_ADMIN.PLUGIN_STATUS
  23. highlight: 1
  24. default: 0
  25. options:
  26. 1: PLUGIN_ADMIN.ENABLED
  27. 0: PLUGIN_ADMIN.DISABLED
  28. validate:
  29. type: bool
  30. general:
  31. type: section
  32. title: PLUGIN_FORM.GENERAL
  33. fields:
  34. built_in_css:
  35. type: toggle
  36. label: PLUGIN_FORM.USE_BUILT_IN_CSS
  37. highlight: 1
  38. default: 1
  39. options:
  40. 1: PLUGIN_ADMIN.ENABLED
  41. 0: PLUGIN_ADMIN.DISABLED
  42. validate:
  43. type: bool
  44. inline_css:
  45. type: toggle
  46. label: PLUGIN_FORM.USE_INLINE_CSS
  47. highlight: 1
  48. default: 1
  49. options:
  50. 1: PLUGIN_ADMIN.ENABLED
  51. 0: PLUGIN_ADMIN.DISABLED
  52. validate:
  53. type: bool
  54. refresh_prevention:
  55. type: toggle
  56. label: PLUGIN_FORM.REFRESH_PREVENTION
  57. help: PLUGIN_FORM.REFRESH_PREVENTION_HELP
  58. highlight: 1
  59. default: 0
  60. options:
  61. 1: PLUGIN_ADMIN.ENABLED
  62. 0: PLUGIN_ADMIN.DISABLED
  63. validate:
  64. type: bool
  65. client_side_validation:
  66. type: toggle
  67. label: PLUGIN_FORM.CLIENT_SIDE_VALIDATION
  68. help: PLUGIN_FORM.CLIENT_SIDE_VALIDATION_HELP
  69. highlight: 1
  70. default: 1
  71. options:
  72. 1: PLUGIN_ADMIN.ENABLED
  73. 0: PLUGIN_ADMIN.DISABLED
  74. validate:
  75. type: bool
  76. inline_errors:
  77. type: toggle
  78. label: PLUGIN_FORM.INLINE_ERRORS
  79. help: PLUGIN_FORM.INLINE_ERRORS_HELP
  80. highlight: 0
  81. default: 0
  82. options:
  83. 1: PLUGIN_ADMIN.ENABLED
  84. 0: PLUGIN_ADMIN.DISABLED
  85. validate:
  86. type: bool
  87. files:
  88. type: section
  89. title: PLUGIN_FORM.FILES
  90. fields:
  91. files.multiple:
  92. type: toggle
  93. label: PLUGIN_FORM.ALLOW_MULTIPLE
  94. help: PLUGIN_FORM.ALLOW_MULTIPLE_HELP
  95. highlight: 1
  96. default: 0
  97. options:
  98. 1: PLUGIN_ADMIN.ENABLED
  99. 0: PLUGIN_ADMIN.DISABLED
  100. validate:
  101. type: bool
  102. files.limit:
  103. type: text
  104. size: x-small
  105. label: PLUGIN_FORM.LIMIT
  106. help: PLUGIN_FORM.LIMIT_HELP
  107. default: 10
  108. validate:
  109. type: number
  110. min: 1
  111. files.destination:
  112. type: text
  113. size: large
  114. label: PLUGIN_FORM.DESTINATION
  115. help: PLUGIN_FORM.DESTINATION_HELP
  116. default: '@self'
  117. files.accept:
  118. type: selectize
  119. size: large
  120. label: PLUGIN_FORM.ACCEPT
  121. help: PLUGIN_FORM.ACCEPT_HELP
  122. classes: fancy
  123. default:
  124. - image/*
  125. validate:
  126. type: commalist
  127. files.filesize:
  128. type: text
  129. label: PLUGIN_FORM.FILESIZE
  130. help: PLUGIN_FORM.FILESIZE_HELP
  131. size: x-small
  132. default: 5
  133. validate:
  134. type: number
  135. min: 0
  136. files.avoid_overwriting:
  137. type: toggle
  138. label: PLUGIN_FORM.AVOID_OVERWRITING
  139. help: PLUGIN_FORM.AVOID_OVERWRITING_HELP
  140. highlight: 0
  141. default: 0
  142. options:
  143. 1: PLUGIN_ADMIN.ENABLED
  144. 0: PLUGIN_ADMIN.DISABLED
  145. validate:
  146. type: bool
  147. files.random_name:
  148. type: toggle
  149. label: PLUGIN_FORM.RANDOM_NAME
  150. help: PLUGIN_FORM.RANDOM_NAME_HELP
  151. highlight: 0
  152. default: 0
  153. options:
  154. 1: PLUGIN_ADMIN.ENABLED
  155. 0: PLUGIN_ADMIN.DISABLED
  156. validate:
  157. type: bool
  158. recaptcha:
  159. type: section
  160. title: PLUGIN_FORM.RECAPTCHA
  161. fields:
  162. recaptcha.version:
  163. type: select
  164. label: PLUGIN_FORM.RECAPTCHA_VERSION
  165. default: 2-checkbox
  166. options:
  167. 2-checkbox: PLUGIN_FORM.RECAPTCHA_VERSION_V2_CHECKBOX
  168. 2-invisible: PLUGIN_FORM.RECAPTCHA_VERSION_V2_INVISIBLE
  169. 3: PLUGIN_FORM.RECAPTCHA_VERSION_V3_LATEST
  170. recaptcha.theme:
  171. type: select
  172. label: PLUGIN_FORM.RECAPTCHA_THEME
  173. default: light
  174. options:
  175. light: PLUGIN_FORM.RECAPTCHA_THEME_LIGHT
  176. dark: PLUGIN_FORM.RECAPTCHA_THEME_DARK
  177. recaptcha.site_key:
  178. recaptcha.site_key:
  179. type: text
  180. label: PLUGIN_FORM.RECAPTCHA_SITE_KEY
  181. help: PLUGIN_FORM.RECAPTCHA_SITE_KEY_HELP
  182. default: ''
  183. recaptcha.secret_key:
  184. type: text
  185. label: PLUGIN_FORM.RECAPTCHA_SECRET_KEY
  186. help: PLUGIN_FORM.RECAPTCHA_SECRET_KEY_HELP
  187. default: ''
  188. turnstile_captcha:
  189. type: section
  190. title: PLUGIN_FORM.TURNSTILE_CAPTCHA
  191. fields:
  192. turnstile.theme:
  193. type: select
  194. label: PLUGIN_FORM.RECAPTCHA_THEME
  195. default: light
  196. options:
  197. light: PLUGIN_FORM.RECAPTCHA_THEME_LIGHT
  198. dark: PLUGIN_FORM.RECAPTCHA_THEME_DARK
  199. turnstile.site_key:
  200. type: text
  201. label: PLUGIN_FORM.RECAPTCHA_SITE_KEY
  202. help: PLUGIN_FORM.RECAPTCHA_SITE_KEY_HELP
  203. default: ''
  204. turnstile.secret_key:
  205. type: text
  206. label: PLUGIN_FORM.RECAPTCHA_SECRET_KEY
  207. help: PLUGIN_FORM.RECAPTCHA_SECRET_KEY_HELP
  208. default: ''
  209. basic_captcha:
  210. type: section
  211. title: PLUGIN_FORM.BASIC_CAPTCHA
  212. fields:
  213. basic_captcha.type:
  214. type: elements
  215. label: PLUGIN_FORM.BASIC_CAPTCHA_TYPE
  216. default: 'characters'
  217. size: medium
  218. options:
  219. characters: Random Characters
  220. math: Math Puzzle
  221. fields:
  222. characters:
  223. type: element
  224. fields:
  225. basic_captcha.chars.length:
  226. type: range
  227. label: PLUGIN_FORM.BASIC_CAPTCHA_LENGTH
  228. default: 6
  229. validate:
  230. min: 4
  231. max: 12
  232. append: characters
  233. basic_captcha.chars.font:
  234. type: select
  235. label: PLUGIN_FORM.BASIC_CAPTCHA_FONT
  236. default: zxx-noise.ttf
  237. options:
  238. 'zxx-noise.ttf': zxx-Noise
  239. 'zxx-xed.ttf': zxx-Xed
  240. 'zxx-camo.ttf': zxx-Camo
  241. 'zxx-sans.ttf': zxx-Sans
  242. basic_captcha.chars.size:
  243. type: range
  244. label: PLUGIN_FORM.BASIC_CAPTCHA_SIZE
  245. default: 24
  246. append: px
  247. validate:
  248. min: 12
  249. max: 32
  250. step: 2
  251. basic_captcha.chars.bg:
  252. type: colorpicker
  253. size: small
  254. label: PLUGIN_FORM.BASIC_CAPTCHA_BG_COLOR
  255. default: '#ffffff'
  256. basic_captcha.chars.text:
  257. type: colorpicker
  258. size: small
  259. label: PLUGIN_FORM.BASIC_CAPTCHA_TEXT_COLOR
  260. default: '#000000'
  261. basic_captcha.chars.start_x:
  262. type: number
  263. label: PLUGIN_FORM.BASIC_CAPTCHA_START_X
  264. default: 5
  265. append: px
  266. size: small
  267. validate:
  268. min: 0
  269. type: number
  270. basic_captcha.chars.start_y:
  271. type: number
  272. label: PLUGIN_FORM.BASIC_CAPTCHA_START_Y
  273. default: 30
  274. append: px
  275. size: small
  276. validate:
  277. min: 0
  278. type: number
  279. basic_captcha.chars.box_width:
  280. type: number
  281. label: PLUGIN_FORM.BASIC_CAPTCHA_BOX_WIDTH
  282. default: 135
  283. append: px
  284. size: small
  285. validate:
  286. min: 0
  287. type: number
  288. basic_captcha.chars.box_height:
  289. type: number
  290. label: PLUGIN_FORM.BASIC_CAPTCHA_BOX_HEIGHT
  291. default: 40
  292. append: px
  293. size: small
  294. validate:
  295. min: 0
  296. type: number
  297. math:
  298. type: element
  299. fields:
  300. basic_captcha.math.min:
  301. type: number
  302. label: PLUGIN_FORM.BASIC_CAPTCHA_MATH_MIN
  303. default: 1
  304. size: small
  305. validate:
  306. min: 0
  307. type: number
  308. basic_captcha.math.max:
  309. type: number
  310. label: PLUGIN_FORM.BASIC_CAPTCHA_MATH_MAX
  311. default: 10
  312. size: small
  313. validate:
  314. min: 1
  315. type: number
  316. basic_captcha.math.operators:
  317. type: selectize
  318. selectize:
  319. options:
  320. - value: '+'
  321. text: '+ Addition'
  322. - value: '-'
  323. text: '- Subtraction'
  324. - value: '*'
  325. text: 'x Multiplication'
  326. - value: '/'
  327. text: '/ Division'
  328. label: PLUGIN_FORM.BASIC_CAPTCHA_MATH_OPERATORS
  329. validate:
  330. type: commalist