ressources.yaml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. title: Ressources
  2. # extends@: default
  3. form:
  4. fields:
  5. tabs:
  6. type: tabs
  7. active: 1
  8. label: tabs
  9. fields:
  10. content:
  11. type: tab
  12. title: Ressources
  13. fields:
  14. header.title:
  15. type: text
  16. autofocus: true
  17. style: vertical
  18. label: PLUGIN_ADMIN.TITLE
  19. header.media_thumbnail:
  20. type: file
  21. label: Vignette
  22. multiple: false
  23. filesize: 5
  24. help: Taille maximum 2Mo
  25. destination: 'self@'
  26. accept:
  27. - image/*
  28. section_title:
  29. type: section
  30. title: Fichiers
  31. underline: true
  32. tabs:
  33. type: tabs
  34. active: 1
  35. label: tabs
  36. fields:
  37. image:
  38. type: tab
  39. title: Images
  40. fields:
  41. header.images:
  42. type: list
  43. collapsed: true
  44. controls: top
  45. style: vertical
  46. fields:
  47. .title:
  48. type: text
  49. label: Titre
  50. validate: require
  51. .image_list:
  52. type: file
  53. label: Image(s)
  54. multiple: true
  55. filesize: 5
  56. help: Taille maximum 2Mo
  57. destination: 'self@'
  58. accept:
  59. - image/*
  60. .tag:
  61. type: selectize
  62. label: Tag
  63. classes: fancy
  64. validate:
  65. type: commalist
  66. documents:
  67. type: tab
  68. title: Documents
  69. fields:
  70. header.doc:
  71. type: list
  72. collapsed: true
  73. controls: top
  74. style: vertical
  75. fields:
  76. .title:
  77. type: text
  78. label: Titre
  79. validate: require
  80. .thumbnail:
  81. type: file
  82. label: Vignette pdf
  83. multiple: false
  84. filesize: 2
  85. help: Taille maximum 1Mo
  86. destination: 'self@'
  87. accept:
  88. - image/*
  89. .doc:
  90. type: file
  91. label: Fichier
  92. multiple: false
  93. filesize: 20
  94. help: Taille maximum 10Mo, pdf, odt, doc, docx
  95. destination: 'self@'
  96. accept: ["image/*", '.pdf', '.odt', '.doc','.docx']
  97. .description:
  98. label: Description
  99. type: textarea
  100. .docTag:
  101. type: selectize
  102. label: tag
  103. selectize:
  104. options:
  105. - text: "Rapports de recherche"
  106. value: "rapports"
  107. - text: "Rapports d’activités et administratifs"
  108. value: "admin"
  109. - text: "Outils numériques"
  110. value: "digital"
  111. - text: "Rapports d'activités et autres documents administratifs"
  112. value: "other"
  113. - text: "Communiqués et tribunes"
  114. value: "com"
  115. - text: "Tribunes"
  116. value: "tribunes"
  117. size: large
  118. classes: fancy
  119. validate:
  120. type: commalist
  121. videos:
  122. type: tab
  123. title: Vidéos
  124. fields:
  125. header.vid:
  126. type: list
  127. collapsed: true
  128. controls: top
  129. style: vertical
  130. fields:
  131. .title:
  132. type: text
  133. label: Titre
  134. validate: require
  135. # .thumbnail:
  136. # https://img.youtube.com/vi/nL34zDTPkcs/0.jpg
  137. .url:
  138. type: text
  139. label: url de la vidéo
  140. .tag:
  141. type: selectize
  142. label: Tag
  143. classes: fancy
  144. validate:
  145. type: commalist
  146. podcast:
  147. type: tab
  148. title: Podcasts
  149. fields:
  150. header.pod:
  151. type: list
  152. collapsed: true
  153. controls: top
  154. style: vertical
  155. fields:
  156. .title:
  157. type: text
  158. label: Titre
  159. validate: require
  160. .desc:
  161. type: tinymce
  162. label: description
  163. .thumbnail:
  164. type: file
  165. label: Vignette pdf
  166. multiple: false
  167. filesize: 2
  168. help: Taille maximum 1Mo
  169. destination: 'self@'
  170. accept:
  171. - image/*
  172. .file:
  173. type: file
  174. label: Fichier audio
  175. multiple: false
  176. filesize: 20
  177. help: Taille maximum 10Mo
  178. destination: 'self@'
  179. accept:
  180. - '*'
  181. newsletter:
  182. type: tab
  183. title: Newsletter
  184. fields:
  185. header.nl:
  186. type: list
  187. collapsed: true
  188. controls: top
  189. style: vertical
  190. fields:
  191. .title:
  192. type: text
  193. label: Titre
  194. validate: require
  195. .url:
  196. type: text
  197. label: Url de la newsletter
  198. media:
  199. type: tab
  200. title: TLP dans les médias
  201. fields:
  202. header.media:
  203. type: list
  204. collapsed: true
  205. controls: top
  206. style: vertical
  207. fields:
  208. .title:
  209. type: text
  210. label: Titre
  211. validate: require
  212. .date:
  213. type: date
  214. label: Date de publication
  215. .desc:
  216. type: textarea
  217. label: Description
  218. .thumbnail:
  219. type: file
  220. label: Vignette
  221. multiple: false
  222. filesize: 2
  223. help: Taille maximum 1Mo
  224. destination: 'self@'
  225. accept:
  226. - image/*
  227. .url:
  228. label: Lien de l'article
  229. type: text