blueprints.yaml 4.4 KB

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