Files
tournonsLaPage/themes/plain/blueprints/media.yaml
T
2023-07-18 10:47:46 +01:00

87 lines
2.4 KiB
YAML
Executable File

title: Media
extends@: default
form:
fields:
tabs:
fields:
content:
fields:
header.media_order:
ordering@: 10
header.media_thumbnail:
style: vertical
ordering@: header.title
header.info:
style: vertical
ordering@: 2
type: text
label: Référence du média
help: auteur du media, date de publication etc.
header.type:
style: vertical
ordering@: header.info
label: type de media
type: selectize
selectize:
options:
- text: "Ouvrage"
value: "ouvrage"
- text: "Film"
value: "film"
size: large
classes: fancy
help: PLUGIN_ADMIN.TAXONOMY_TYPES_HELP
validate:
type: commalist
header.author:
type: text
label: Auteur de la fiche
columns:
type: columns
fields:
column1:
type: column
fields:
header.file:
type: file
label: Fichier
multiple: false
filesize: 20
help: Taille maximum 10Mo
destination: 'self@'
accept:
- '*'
column3:
type: column
fields:
header.media_thumb:
type: filepicker
folder: '@self'
preview_images: true
label: Aperçu du média
column2:
type: column
fields:
header.private:
type: toggle
label: Accés privé
highlight: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool