nouveau-theatre-de-besancon/site/blueprints/pages/event.yml
2024-08-28 11:28:22 +02:00

204 lines
5.2 KiB
YAML

title: Événement
tabs:
contentTab:
label: Contenu
icon: false
columns:
- width: 1/2
fields:
mapadoKeyInfos:
label: Connecté à Mapado
type: info
width: 1/2
text: |
[Gérer l'événement Mapado](https://desk.mapado.com/mass-action/ticketing/{{page.mapadoId}}).
**Infos erronées ?**
Enregistrez (touches ⌘ / ctrl + s) et rechargez la page.
when:
isMapadoEvent: true
mapadoSlug:
type: hidden
duration:
label: Durée
type: text
icon: clock
width: 1/2
placeholder: 1h20
when:
isMapadoEvent: false
remoteDuration:
label: Durée
type: text
icon: clock
width: 1/2
placeholder: 1h20
disabled: true
help: Nécessite **qu'une séance au moins ait une heure de fin** sur Mapado.
when:
isMapadoEvent: true
- width: 1/2
fields:
public:
type: text
icon: users
width: 1/2
placeholder: dès 8 ans
place:
label: Lieu
type: text
icon: pin
width: 1/2
placeholder: NTB
- width: 1/1
fields:
sessions:
label: Séances
type: structure
columns:
date:
width: 1/2
time:
width: 1/2
when:
isMapadoEvent: false
fields:
date:
type: date
icon: calendar
display: DD/MM/YYYY
width: 1/2
time:
label: Horaire de début
type: text
width: 1/2
remoteSessions:
label: Séances
type: structure
disabled: true
columns:
date:
width: 1/4
time:
width: 1/4
ticketingUrl:
width: 1/4
bookableStock:
width: 1/4
when:
isMapadoEvent: true
fields:
date:
type: date
icon: calendar
display: DD/MM/YYYY
width: 1/4
time:
label: Horaire de début
type: text
width: 1/4
ticketingUrl:
label: Lien billetterie
type: url
width: 1/4
bookableStock:
label: Places disponibles
type: text
width: 1/4
- width: 1/1
fields:
line:
type: line
presentationHeadline:
type: headline
label: Présentation
- width: 1/2
fields:
gallery:
label: Galerie
type: files
layout: cards
image:
cover: true
ratio: 4/3
- width: 1/2
fields:
authors:
label: Auteur(s)
type: writer
nodes: false
marks: false
chapo:
type: writer
description:
type: writer
- width: 1/1
fields:
production:
label: Distribution et production
type: layout
layouts:
- "1/3, 1/3, 1/3"
fieldsets:
- text
resources:
label: Ressources
type: structure
fields:
name:
label: Nom
type: text
width: 1/2
file:
label: Fichier
type: files
multiple: false
width: 1/2
linkedPages:
label: Pages liées
type: pages
max: 4
help: 4 maximum
settingsTab:
label: Réglages
icon: cog
fields:
color: fields/color
mapadoLine:
type: line
isMapadoEvent:
label: Connecter à Mapado
type: toggle
default: false
width: 1/4
mapadoInfo:
label: Pourquoi faire ?
type: info
text: |
Permet de récupérer depuis [Mapado](https://desk.mapado.com/) les infos suivantes :
- date de début
- date de fin
- durée
- séances et leurs informations (date, places restantes)
width: 2/4
whiteSpace:
type: gap
width: 1/4
mapadoId:
label: Identifiant Mapado
type: number
width: 1/4
help: |
Suite de 6 chiffres à récupérer dans l'URL de l'événement Mapado :
- https:// desk.mapado.com/activity/ **342099** -les-gros-patinent-...
- https:// cdn-besancon.mapado.com/event/ **342099** -les-gros-patinent-bien
when:
isMapadoEvent: true
mapadoButton:
type: mapado-check
width: 3/4
when:
isMapadoEvent: true
files: tabs/files