blueprints.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. name: Form
  2. slug: form
  3. type: plugin
  4. version: 5.1.4
  5. description: Enables the forms handling
  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.24' }
  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: ''