mediatheque
This commit is contained in:
Executable
+86
@@ -0,0 +1,86 @@
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user