blueprints.yaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. name: Form
  2. version: 2.11.2
  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.3.9' }
  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. refresh_prevention:
  43. type: toggle
  44. label: PLUGIN_FORM.REFRESH_PREVENTION
  45. help: PLUGIN_FORM.REFRESH_PREVENTION_HELP
  46. highlight: 1
  47. default: 0
  48. options:
  49. 1: Enabled
  50. 0: Disabled
  51. validate:
  52. type: bool
  53. files:
  54. type: section
  55. title: PLUGIN_FORM.FILES
  56. fields:
  57. files.multiple:
  58. type: toggle
  59. label: PLUGIN_FORM.ALLOW_MULTIPLE
  60. help: PLUGIN_FORM.ALLOW_MULTIPLE_HELP
  61. highlight: 1
  62. default: 0
  63. options:
  64. 1: PLUGIN_ADMIN.ENABLED
  65. 0: PLUGIN_ADMIN.DISABLED
  66. validate:
  67. type: bool
  68. files.limit:
  69. type: text
  70. size: x-small
  71. label: PLUGIN_FORM.LIMIT
  72. help: PLUGIN_FORM.LIMIT_HELP
  73. default: 10
  74. validate:
  75. type: number
  76. min: 1
  77. files.destination:
  78. type: text
  79. size: large
  80. label: PLUGIN_FORM.DESTINATION
  81. help: PLUGIN_FORM.DESTINATION_HELP
  82. default: '@self'
  83. files.accept:
  84. type: selectize
  85. size: large
  86. label: PLUGIN_FORM.ACCEPT
  87. help: PLUGIN_FORM.ACCEPT_HELP
  88. classes: fancy
  89. default:
  90. - image/*
  91. validate:
  92. type: commalist
  93. files.filesize:
  94. type: text
  95. label: PLUGIN_FORM.FILESIZE
  96. help: PLUGIN_FORM.FILESIZE_HELP
  97. size: x-small
  98. default: 5
  99. validate:
  100. type: number
  101. min: 0
  102. files.avoid_overwriting:
  103. type: toggle
  104. label: PLUGIN_FORM.AVOID_OVERWRITING
  105. help: PLUGIN_FORM.AVOID_OVERWRITING_HELP
  106. highlight: 0
  107. default: 0
  108. options:
  109. 1: PLUGIN_ADMIN.ENABLED
  110. 0: PLUGIN_ADMIN.DISABLED
  111. validate:
  112. type: bool
  113. files.random_name:
  114. type: toggle
  115. label: PLUGIN_FORM.RANDOM_NAME
  116. help: PLUGIN_FORM.RANDOM_NAME_HELP
  117. highlight: 0
  118. default: 0
  119. options:
  120. 1: PLUGIN_ADMIN.ENABLED
  121. 0: PLUGIN_ADMIN.DISABLED
  122. validate:
  123. type: bool
  124. recaptcha:
  125. type: section
  126. title: PLUGIN_FORM.RECAPTCHA
  127. fields:
  128. recaptcha.site_key:
  129. type: text
  130. label: PLUGIN_FORM.RECAPTCHA_SITE_KEY
  131. help: PLUGIN_FORM.RECAPTCHA_SITE_KEY_HELP
  132. default: ''
  133. recaptcha.secret_key:
  134. type: text
  135. label: PLUGIN_FORM.RECAPTCHA_SECRET_KEY
  136. help: PLUGIN_FORM.RECAPTCHA_SECRET_KEY_HELP
  137. default: ''