design to light button and panel working without indicators

This commit is contained in:
isUnknown 2025-01-22 13:25:34 +01:00
parent 5a80cfaa81
commit c2314e6b8e
11 changed files with 221 additions and 23 deletions

View file

@ -1,17 +1,21 @@
title: PDF
focus: false
fields:
comments:
type: hidden
cover:
label: Image de couverture
type: files
multiple: false
width: 1/3
layout: cards
uploads: pdf-cover
label:
label: Nom
type: text
width: 1/3
tabs:
presentation:
label: Présentation
fields:
comments:
type: hidden
cover:
label: Image de couverture
type: files
multiple: false
width: 1/3
layout: cards
uploads: pdf-cover
label:
label: Nom
type: text
width: 1/3

View file

@ -50,6 +50,8 @@ tabs:
- virtual-sample
- physical-sample
designToLight: tabs/design-to-light
files: tabs/files
notificationsTab:

View file

@ -28,5 +28,6 @@ tabs:
type: files
uploads: pdf
stepName:
type: hidden
type: hidden
files: tabs/files

View file

@ -8,3 +8,5 @@ tabs:
label: Rendu
type: files
required: true
files: tabs/files

View file

@ -0,0 +1,66 @@
designToLight:
label: Design to light
icon: leaf
columns:
- width: 2/10
fields:
isDTLEnabled:
label: Actif
type: toggle
default: false
- width: 8/10
fields:
DTLProposalLocation:
label: Localisation de la proposition Design to light
type: radio
options:
proposal: Proposition commerciale
industrialIdeation: Idéation industrielle
virtualSampleDynamicTrack: Échantillon virtuel - piste dynamique
virtualSampleStaticTrack: Échantillon virtuel - piste statique
when:
isDTLEnabled: true
width: 1/2
DTLproposal:
label: Fichier
type: files
multiple: false
query: page.find('proposal').pdf.toFiles
width: 1/2
when:
DTLProposalLocation: proposal
DTLindustrialIdeation:
label: Fichier
type: files
multiple: false
query: page.find('industrial-ideation').files
width: 1/2
when:
DTLProposalLocation: industrialIdeation
DTLVirtualSampleDynamicTrack:
label: Piste dynamique
type: pages
multiple: false
query: page.find('virtual-sample').children
width: 1/2
when:
DTLProposalLocation: virtualSampleDynamicTrack
DTLVirtualSampleStaticTrack:
label: Piste statique
type: files
multiple: false
query: page.find('virtual-sample').rawGlass.toFiles.add(page.find('virtual-sample').finishedGlass.toFile)
width: 1/2
when:
DTLProposalLocation: virtualSampleStaticTrack
DTLGrade:
label: Note globale
type: text
when:
isDTLEnabled: true