Fix date field in event blueprint, add French locale and intl date handler
This commit is contained in:
parent
5fd6e7b8ab
commit
9f6c3b7a39
2 changed files with 55 additions and 1 deletions
52
site/blueprints/pages/event.yml
Normal file
52
site/blueprints/pages/event.yml
Normal file
|
|
@ -0,0 +1,52 @@
|
||||||
|
title: Spectacle
|
||||||
|
|
||||||
|
tabs:
|
||||||
|
content:
|
||||||
|
label: Contenu
|
||||||
|
fields:
|
||||||
|
mainCredits:
|
||||||
|
label: Crédits principaux
|
||||||
|
type: structure
|
||||||
|
fields:
|
||||||
|
label:
|
||||||
|
type: text
|
||||||
|
value:
|
||||||
|
type: text
|
||||||
|
secondaryCredits:
|
||||||
|
label: Crédits secondaires
|
||||||
|
type: writer
|
||||||
|
nodes: false
|
||||||
|
marks:
|
||||||
|
- italic
|
||||||
|
- bold
|
||||||
|
- link
|
||||||
|
- mail
|
||||||
|
presentation:
|
||||||
|
type: writer
|
||||||
|
nodes: false
|
||||||
|
marks:
|
||||||
|
- italic
|
||||||
|
- bold
|
||||||
|
- link
|
||||||
|
- mail
|
||||||
|
dates:
|
||||||
|
type: structure
|
||||||
|
help: La saison concernée est déduite autmatiquement des dates.
|
||||||
|
fields:
|
||||||
|
locations:
|
||||||
|
label: Lieux
|
||||||
|
type: structure
|
||||||
|
fields:
|
||||||
|
name:
|
||||||
|
label: Nom
|
||||||
|
placeholder: Théâtre-Sénart, Scène Nationale, Lieusaint
|
||||||
|
type: text
|
||||||
|
dates:
|
||||||
|
label: Dates
|
||||||
|
type: structure
|
||||||
|
fields:
|
||||||
|
date:
|
||||||
|
label: Date
|
||||||
|
type: date
|
||||||
|
display: DD/MM/YYYY
|
||||||
|
files: tabs/files
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'debug' => true
|
'debug' => true,
|
||||||
|
'locale' => 'fr_FR.UTF-8',
|
||||||
|
'date.handler' => 'intl',
|
||||||
];
|
];
|
||||||
Loading…
Add table
Add a link
Reference in a new issue