project blueprint - add optional steps

This commit is contained in:
isUnknown 2024-09-26 15:46:13 +02:00
parent 0df79ba8a8
commit 595c275100
5 changed files with 67 additions and 13 deletions

View file

@ -0,0 +1,42 @@
<?php
class ProjectPage extends Page {
public function getSteps() {
$steps = [
[
'text' => '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;
}
}