feat(blueprints): refactor investigation-summary and report page layouts
All checks were successful
Deploy / Deploy to Production (push) Successful in 17s
All checks were successful
Deploy / Deploy to Production (push) Successful in 17s
Investigation Summary: - Reorganize fields for better UX (cover moved up) - Enhance video system with preview and URL fields - Convert synthesis field to writer with formatting options - Change team field to multiselect with database query - Adjust field widths for better layout Report: - Simplify page layout and column structure - Make cover image required - Remove metadata tab (fields integrated in main tab) - Add gallery block to available blocks - Move authors field to main content area Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
93f7b45c97
commit
c8492cd27e
2 changed files with 51 additions and 76 deletions
|
|
@ -16,6 +16,15 @@ tabs:
|
|||
display: DD / MM / YYYY
|
||||
default: today
|
||||
width: 1/2
|
||||
cover:
|
||||
label: Visuel de couverture
|
||||
type: files
|
||||
multiple: false
|
||||
layout: cards
|
||||
image:
|
||||
ratio: 12/7
|
||||
cover: true
|
||||
help: Image utilisée dans les listes d'enquêtes
|
||||
reportSection:
|
||||
label: Rapport
|
||||
type: pages
|
||||
|
|
@ -27,18 +36,10 @@ tabs:
|
|||
type: writer
|
||||
nodes: false
|
||||
buttons: false
|
||||
cover:
|
||||
label: Visuel de couverture
|
||||
type: files
|
||||
multiple: false
|
||||
layout: cards
|
||||
image:
|
||||
ratio: 12/7
|
||||
cover: true
|
||||
help: Image utilisée dans les listes d'enquêtes
|
||||
heroType:
|
||||
label: Type de hero
|
||||
type: select
|
||||
default: image
|
||||
options:
|
||||
image: Image simple
|
||||
video: Vidéo
|
||||
|
|
@ -49,25 +50,40 @@ tabs:
|
|||
type: files
|
||||
multiple: true
|
||||
layout: cards
|
||||
width: 1/3
|
||||
when:
|
||||
heroType: image
|
||||
videoExtractUrl:
|
||||
label: URL vidéo d'extrait (autoplay)
|
||||
type: url
|
||||
videoPreview:
|
||||
label: Preview
|
||||
type: files
|
||||
multiple: false
|
||||
help: Extrait joué en autoplay muet.
|
||||
width: 1/3
|
||||
when:
|
||||
heroType: video
|
||||
width: 1/2
|
||||
videoFullUrl:
|
||||
videoUrl:
|
||||
label: URL vidéo complète (YouTube embed)
|
||||
type: url
|
||||
width: 1/3
|
||||
when:
|
||||
heroType: video
|
||||
width: 1/2
|
||||
synthesis:
|
||||
label: Synthèse
|
||||
type: textarea
|
||||
type: writer
|
||||
size: large
|
||||
buttons: false
|
||||
headings:
|
||||
- 4
|
||||
nodes:
|
||||
- heading
|
||||
- bulletlist
|
||||
- orderedlist
|
||||
marks:
|
||||
- bold
|
||||
- italic
|
||||
- underline
|
||||
- link
|
||||
- '|'
|
||||
- clear
|
||||
metadataTab:
|
||||
label: Métadonnées
|
||||
icon: table
|
||||
|
|
@ -106,13 +122,13 @@ tabs:
|
|||
type: multiselect
|
||||
options: query
|
||||
query: page('database').keywords.split
|
||||
width: 1/2
|
||||
width: 1/3
|
||||
methodologies:
|
||||
label: Méthodologies
|
||||
options: query
|
||||
query: page('database').methodologies.split
|
||||
type: multiselect
|
||||
width: 1/2
|
||||
width: 1/3
|
||||
partners:
|
||||
label: Partenaires
|
||||
type: structure
|
||||
|
|
@ -126,7 +142,9 @@ tabs:
|
|||
type: url
|
||||
team:
|
||||
label: Équipe Index
|
||||
type: tags
|
||||
type: multiselect
|
||||
options: query
|
||||
query: page('database').team.split
|
||||
width: 1/2
|
||||
relatedInvestigations:
|
||||
label: Enquêtes en lien
|
||||
|
|
|
|||
|
|
@ -8,11 +8,7 @@ tabs:
|
|||
label: Contenu
|
||||
icon: page
|
||||
columns:
|
||||
- width: 1/6
|
||||
fields:
|
||||
emptyLeft:
|
||||
type: gap
|
||||
- width: 4/6
|
||||
- width: 1/4
|
||||
fields:
|
||||
created:
|
||||
label: Première publication
|
||||
|
|
@ -20,25 +16,27 @@ tabs:
|
|||
display: DD / MM / YYYY
|
||||
default: today
|
||||
width: 1/2
|
||||
subtitle:
|
||||
label: Sous-titre
|
||||
authors:
|
||||
label: Auteur(s)
|
||||
type: text
|
||||
width: 1/2
|
||||
chapo:
|
||||
label: Chapo
|
||||
type: writer
|
||||
nodes: false
|
||||
buttons: false
|
||||
placeholder: INDEX Investigation
|
||||
default: INDEX Investigation
|
||||
cover:
|
||||
label: Visuel de couverture
|
||||
type: files
|
||||
multiple: false
|
||||
min: 1
|
||||
required: true
|
||||
layout: cards
|
||||
size: full
|
||||
image:
|
||||
ratio: 12/7
|
||||
cover: true
|
||||
- width: 3/4
|
||||
fields:
|
||||
subtitle:
|
||||
label: Sous-titre
|
||||
type: text
|
||||
body:
|
||||
label: Corps
|
||||
type: layout
|
||||
|
|
@ -51,47 +49,6 @@ tabs:
|
|||
- image
|
||||
- beforeafter
|
||||
- video
|
||||
- horizontal-gallery
|
||||
- width: 1/6
|
||||
fields:
|
||||
emptyRight:
|
||||
type: gap
|
||||
metadataTab:
|
||||
label: Métadonnées
|
||||
icon: table
|
||||
fields:
|
||||
authors:
|
||||
label: Auteur(s)
|
||||
default: INDEX Investigation
|
||||
type: tags
|
||||
incidentDate:
|
||||
label: Date de l'incident
|
||||
type: date
|
||||
display: DD / MM / YYYY
|
||||
width: 1/3
|
||||
incidentLocation:
|
||||
label: Lieu de l'incident
|
||||
type: text
|
||||
width: 1/3
|
||||
incidentConsequences:
|
||||
label: Conséquence(s)
|
||||
type: text
|
||||
width: 1/3
|
||||
keywords:
|
||||
label: Mots-clés
|
||||
type: tags
|
||||
width: 1/2
|
||||
partners:
|
||||
label: Partenaires
|
||||
type: structure
|
||||
width: 1/2
|
||||
fields:
|
||||
name:
|
||||
label: Nom
|
||||
type: text
|
||||
link:
|
||||
label: Lien
|
||||
type: link
|
||||
options:
|
||||
- url
|
||||
# - horizontal-gallery
|
||||
- gallery
|
||||
seo: seo/page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue