add hook create-steps

This commit is contained in:
isUnknown 2024-09-18 13:05:55 +02:00
parent 5cc48ff9d2
commit ee4e6adf06
24 changed files with 204 additions and 77 deletions

View file

@ -2,58 +2,44 @@ title: Projet
icon: page
tabs:
brief:
label: Brief client
icon: document
steps:
label: Étapes
icon: circle-nested
columns:
- width: 1/2
sections:
brief:
type: fields
fields:
currentStep:
label: Étape en cours
type: select
options:
type: query
query: page.parent.steps.split
client:
type: pages
multiple: false
query: site.find("clients").childrenAndDrafts
subpages: false
image:
query: page.logo.toFile
layout: cardlets
width: 1/2
briefClientPdf:
label: PDF
type: files
multiple: false
uploads: pdf
layout: cardlets
width: 1/2
- width: 1/2
sections:
description:
type: fields
fields:
description:
type: textarea
size: tiny
buttons: false
maxlength: 700
- width: 1/1
fields:
currentStep:
label: Étape en cours
type: radio
columns: 4
default: clientBrief
options:
clientBrief: Brief client
proposal: Offre commerciale
extendedBrief: Brief enrichi
virtualSample: Échantillon virtuel
- width: 1/3
fields:
client:
type: pages
multiple: false
query: site.find("clients").childrenAndDrafts
subpages: false
image:
query: page.logo.toFile
layout: cardlets
- width: 2/3
sections:
images:
type: fields
fields:
briefClientImages:
label: Images
type: files
uploads: image
layout: cards
size: medium
stepsSection:
label: Étapes
type: pages
templates:
- client-brief
- proposal
- extended-brief
- sample
# client:
# label: Client
# icon: account