diff --git a/public/content/projects/1_miss-dior-blooming-bouquet/project.txt b/public/content/projects/1_miss-dior-blooming-bouquet/project.txt
index 72f1f18..1085a72 100644
--- a/public/content/projects/1_miss-dior-blooming-bouquet/project.txt
+++ b/public/content/projects/1_miss-dior-blooming-bouquet/project.txt
@@ -2,12 +2,16 @@ Title: Miss Dior Blooming Bouquet
----
+Optionalsteps: industrialIdeation, physicalSample
+
+----
+
+Currentstep: brief
+
+----
+
Client: - page://G418qZ4ABsoWFx4i
----
-Currentstep: clientBrief
-
-----
-
Uuid: 513oEM4JFuWBt2Bw
\ No newline at end of file
diff --git a/public/site/blueprints/pages/project.yml b/public/site/blueprints/pages/project.yml
index b3d178f..84bce12 100644
--- a/public/site/blueprints/pages/project.yml
+++ b/public/site/blueprints/pages/project.yml
@@ -8,16 +8,25 @@ tabs:
columns:
- width: 1/1
fields:
+ optionalSteps:
+ label: Étapes optionnelles
+ type: checkboxes
+ width: 1/2
+ columns: 2
+ options:
+ industrialIdeation: Idéation industrielle
+ physicalSample: Échantillon physique
+ help: Après modification, sauvegardez et rechargez la page pour mettre à jour la liste ci-dessous.
currentStep:
label: Étape en cours
type: radio
- columns: 4
+ columns: 6
default: clientBrief
options:
- clientBrief: Brief client
- proposal: Offre commerciale
- extendedBrief: Brief enrichi
- virtualSample: Échantillon virtuel
+ type: query
+ query: page.getSteps
+ text: "{{ item.text }}"
+ value: "{{ item.value }}"
- width: 1/3
fields:
client:
diff --git a/public/site/models/project.php b/public/site/models/project.php
new file mode 100644
index 0000000..f9e5b02
--- /dev/null
+++ b/public/site/models/project.php
@@ -0,0 +1,42 @@
+ '1. Brief',
+ 'value' => 'brief'
+ ],
+ [
+ 'text' => '2. Offre commerciale',
+ 'value' => 'proposal'
+ ],
+ [
+ 'text' => '3. Brief enrichi',
+ 'value' => 'extendedBrief'
+ ],
+ ];
+
+ if (str_contains($this->optionalSteps(), 'industrialIdeation')) {
+ $steps[] = [
+ 'text' => '4. Idéation industrielle',
+ 'value' => 'industrialIdeation'
+ ];
+ }
+
+ $steps[] = [
+ 'text' => count($steps) + 1 . '. Échantillon virtuel',
+ 'value' => 'virtualSample'
+ ];
+
+ if (str_contains($this->optionalSteps(), 'physicalSample')) {
+ $steps[] = [
+ 'text' => count($steps) + 1 . '.Échantillon physique',
+ 'value' => 'physicalSample'
+ ];
+ }
+
+ return $steps;
+ }
+}
\ No newline at end of file
diff --git a/public/site/templates/projects.json.php b/public/site/templates/projects.json.php
index 716554d..1015bf7 100644
--- a/public/site/templates/projects.json.php
+++ b/public/site/templates/projects.json.php
@@ -1,5 +1,4 @@
children()->map(function ($child) {
return [
'title' => $child->title()->value(),
diff --git a/src/views/Project.vue b/src/views/Project.vue
index 5af56df..b747eb0 100644
--- a/src/views/Project.vue
+++ b/src/views/Project.vue
@@ -5,12 +5,12 @@
-
+