blueprints.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. name: Form
  2. slug: form
  3. type: plugin
  4. version: 4.1.1
  5. testing: false
  6. description: Enables the forms handling
  7. icon: check-square
  8. author:
  9. name: Team Grav
  10. email: devs@getgrav.org
  11. url: http://getgrav.org
  12. keywords: plugin, form
  13. homepage: https://github.com/getgrav/grav-plugin-form
  14. bugs: https://github.com/getgrav/grav-plugin-form/issues
  15. license: MIT
  16. dependencies:
  17. - { name: grav, version: '>=1.6.0' }
  18. form:
  19. validation: strict
  20. fields:
  21. enabled:
  22. type: hidden
  23. label: PLUGIN_ADMIN.PLUGIN_STATUS
  24. highlight: 1
  25. default: 0
  26. options:
  27. 1: PLUGIN_ADMIN.ENABLED
  28. 0: PLUGIN_ADMIN.DISABLED
  29. validate:
  30. type: bool
  31. general:
  32. type: section
  33. title: PLUGIN_FORM.GENERAL
  34. fields:
  35. built_in_css:
  36. type: toggle
  37. label: PLUGIN_FORM.USE_BUILT_IN_CSS
  38. highlight: 1
  39. default: 1
  40. options:
  41. 1: PLUGIN_ADMIN.ENABLED
  42. 0: PLUGIN_ADMIN.DISABLED
  43. validate:
  44. type: bool
  45. inline_css:
  46. type: toggle
  47. label: PLUGIN_FORM.USE_INLINE_CSS
  48. highlight: 1
  49. default: 1
  50. options:
  51. 1: PLUGIN_ADMIN.ENABLED
  52. 0: PLUGIN_ADMIN.DISABLED
  53. validate:
  54. type: bool
  55. refresh_prevention:
  56. type: toggle
  57. label: PLUGIN_FORM.REFRESH_PREVENTION
  58. help: PLUGIN_FORM.REFRESH_PREVENTION_HELP
  59. highlight: 1
  60. default: 0
  61. options:
  62. 1: PLUGIN_ADMIN.ENABLED
  63. 0: PLUGIN_ADMIN.DISABLED
  64. validate:
  65. type: bool
  66. client_side_validation:
  67. type: toggle
  68. label: PLUGIN_FORM.CLIENT_SIDE_VALIDATION
  69. help: PLUGIN_FORM.CLIENT_SIDE_VALIDATION_HELP
  70. highlight: 1
  71. default: 1
  72. options:
  73. 1: PLUGIN_ADMIN.ENABLED
  74. 0: PLUGIN_ADMIN.DISABLED
  75. validate:
  76. type: bool
  77. inline_errors:
  78. type: toggle
  79. label: PLUGIN_FORM.INLINE_ERRORS
  80. help: PLUGIN_FORM.INLINE_ERRORS_HELP
  81. highlight: 0
  82. default: 0
  83. options:
  84. 1: PLUGIN_ADMIN.ENABLED
  85. 0: PLUGIN_ADMIN.DISABLED
  86. validate:
  87. type: bool
  88. files:
  89. type: section
  90. title: PLUGIN_FORM.FILES
  91. fields:
  92. files.multiple:
  93. type: toggle
  94. label: PLUGIN_FORM.ALLOW_MULTIPLE
  95. help: PLUGIN_FORM.ALLOW_MULTIPLE_HELP
  96. highlight: 1
  97. default: 0
  98. options:
  99. 1: PLUGIN_ADMIN.ENABLED
  100. 0: PLUGIN_ADMIN.DISABLED
  101. validate:
  102. type: bool
  103. files.limit:
  104. type: text
  105. size: x-small
  106. label: PLUGIN_FORM.LIMIT
  107. help: PLUGIN_FORM.LIMIT_HELP
  108. default: 10
  109. validate:
  110. type: number
  111. min: 1
  112. files.destination:
  113. type: text
  114. size: large
  115. label: PLUGIN_FORM.DESTINATION
  116. help: PLUGIN_FORM.DESTINATION_HELP
  117. default: '@self'
  118. files.accept:
  119. type: selectize
  120. size: large
  121. label: PLUGIN_FORM.ACCEPT
  122. help: PLUGIN_FORM.ACCEPT_HELP
  123. classes: fancy
  124. default:
  125. - image/*
  126. validate:
  127. type: commalist
  128. files.filesize:
  129. type: text
  130. label: PLUGIN_FORM.FILESIZE
  131. help: PLUGIN_FORM.FILESIZE_HELP
  132. size: x-small
  133. default: 5
  134. validate:
  135. type: number
  136. min: 0
  137. files.avoid_overwriting:
  138. type: toggle
  139. label: PLUGIN_FORM.AVOID_OVERWRITING
  140. help: PLUGIN_FORM.AVOID_OVERWRITING_HELP
  141. highlight: 0
  142. default: 0
  143. options:
  144. 1: PLUGIN_ADMIN.ENABLED
  145. 0: PLUGIN_ADMIN.DISABLED
  146. validate:
  147. type: bool
  148. files.random_name:
  149. type: toggle
  150. label: PLUGIN_FORM.RANDOM_NAME
  151. help: PLUGIN_FORM.RANDOM_NAME_HELP
  152. highlight: 0
  153. default: 0
  154. options:
  155. 1: PLUGIN_ADMIN.ENABLED
  156. 0: PLUGIN_ADMIN.DISABLED
  157. validate:
  158. type: bool
  159. recaptcha:
  160. type: section
  161. title: PLUGIN_FORM.RECAPTCHA
  162. fields:
  163. recaptcha.version:
  164. type: select
  165. label: PLUGIN_FORM.RECAPTCHA_VERSION
  166. default: 2-checkbox
  167. options:
  168. 2-checkbox: PLUGIN_FORM.RECAPTCHA_VERSION_V2_CHECKBOX
  169. 2-invisible: PLUGIN_FORM.RECAPTCHA_VERSION_V2_INVISIBLE
  170. 3: PLUGIN_FORM.RECAPTCHA_VERSION_V3_LATEST
  171. recaptcha.theme:
  172. type: select
  173. label: PLUGIN_FORM.RECAPTCHA_THEME
  174. default: light
  175. options:
  176. light: PLUGIN_FORM.RECAPTCHA_THEME_LIGHT
  177. dark: PLUGIN_FORM.RECAPTCHA_THEME_DARK
  178. recaptcha.site_key:
  179. recaptcha.site_key:
  180. type: text
  181. label: PLUGIN_FORM.RECAPTCHA_SITE_KEY
  182. help: PLUGIN_FORM.RECAPTCHA_SITE_KEY_HELP
  183. default: ''
  184. recaptcha.secret_key:
  185. type: text
  186. label: PLUGIN_FORM.RECAPTCHA_SECRET_KEY
  187. help: PLUGIN_FORM.RECAPTCHA_SECRET_KEY_HELP
  188. default: ''