media.yaml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. title: Media
  2. extends@: default
  3. form:
  4. fields:
  5. tabs:
  6. fields:
  7. content:
  8. fields:
  9. header.media_order:
  10. ordering@: 10
  11. header.media_thumbnail:
  12. style: vertical
  13. ordering@: header.title
  14. header.info:
  15. style: vertical
  16. ordering@: 2
  17. type: text
  18. label: Référence du média
  19. help: auteur du media, date de publication etc.
  20. header.type:
  21. style: vertical
  22. ordering@: header.info
  23. label: type de media
  24. type: selectize
  25. selectize:
  26. options:
  27. - text: "Ouvrage"
  28. value: "ouvrage"
  29. - text: "Film"
  30. value: "film"
  31. size: large
  32. classes: fancy
  33. help: PLUGIN_ADMIN.TAXONOMY_TYPES_HELP
  34. validate:
  35. type: commalist
  36. header.author:
  37. type: text
  38. label: Auteur de la fiche
  39. columns:
  40. type: columns
  41. fields:
  42. column1:
  43. type: column
  44. fields:
  45. header.file:
  46. type: file
  47. label: Fichier
  48. multiple: false
  49. filesize: 20
  50. help: Taille maximum 10Mo
  51. destination: 'self@'
  52. accept:
  53. - '*'
  54. column3:
  55. type: column
  56. fields:
  57. header.media_thumb:
  58. type: filepicker
  59. folder: '@self'
  60. preview_images: true
  61. label: Aperçu du média
  62. column2:
  63. type: column
  64. fields:
  65. header.private:
  66. type: toggle
  67. label: Accés privé
  68. highlight: 0
  69. options:
  70. 1: PLUGIN_ADMIN.YES
  71. 0: PLUGIN_ADMIN.NO
  72. validate:
  73. type: bool