diff --git a/public/site/blueprints/tabs/design-to-light.yml b/public/site/blueprints/tabs/design-to-light.yml index 564446b..52fe0d6 100644 --- a/public/site/blueprints/tabs/design-to-light.yml +++ b/public/site/blueprints/tabs/design-to-light.yml @@ -40,6 +40,9 @@ fields: type: headline label: La proposition + DTLProposalTitle: + label: Titre + type: text DTLProposalLocation: label: Localisation help: Quelle étape contient la proposition Design to Light ? diff --git a/public/site/plugins/helpers/index.php b/public/site/plugins/helpers/index.php index d84c963..9326e98 100644 --- a/public/site/plugins/helpers/index.php +++ b/public/site/plugins/helpers/index.php @@ -80,6 +80,7 @@ function processDTLProposals($page) { if ($proposalPage && $proposalFile) { $index = $proposalPage->pdf()->toFiles()->indexOf($proposalFile); $DTLProposal = [ + "title" => $proposal->DTLProposalTitle()->isNotEmpty() ? (string) $proposal->DTLProposalTitle() : null, "location" => [ "step" => "proposal", "source" => (string) $proposalFile->url() @@ -97,6 +98,7 @@ function processDTLProposals($page) { if ($proposalPage && $proposalFile) { $DTLProposal = [ + "title" => $proposal->DTLProposalTitle()->isNotEmpty() ? (string) $proposal->DTLProposalTitle() : null, "location" => [ "step" => "industrialIdeation", "source" => (string) $proposalFile->url() @@ -112,6 +114,7 @@ function processDTLProposals($page) { $proposalPage = $proposal->DTLVirtualSampleDynamicTrack()->toPage(); if ($proposalPage) { $DTLProposal = [ + "title" => $proposal->DTLProposalTitle()->isNotEmpty() ? (string) $proposal->DTLProposalTitle() : null, "location" => [ "step" => "virtualSample", "type" => "dynamic", @@ -129,6 +132,7 @@ function processDTLProposals($page) { $proposalFile = $proposal->DTLVirtualSampleStaticTrack()->toFile(); if ($proposalPage && $proposalFile) { $DTLProposal = [ + "title" => $proposal->DTLProposalTitle()->isNotEmpty() ? (string) $proposal->DTLProposalTitle() : null, "location" => [ "step" => "virtualSample", "type" => "static", diff --git a/src/components/design-to-light/DTLPanel.vue b/src/components/design-to-light/DTLPanel.vue index 52e9734..3a18eee 100644 --- a/src/components/design-to-light/DTLPanel.vue +++ b/src/components/design-to-light/DTLPanel.vue @@ -2,7 +2,7 @@