2024-09-18 13:05:55 +02:00
|
|
|
<?php
|
|
|
|
|
|
2024-09-23 18:34:02 +02:00
|
|
|
return function($page) {
|
2024-09-26 17:21:24 +02:00
|
|
|
if ($page->template() == "project") {
|
|
|
|
|
kirby()->impersonate('kirby');
|
|
|
|
|
|
|
|
|
|
$brief = $page->createChild([
|
|
|
|
|
'slug' => 'client-brief',
|
|
|
|
|
'template' => 'client-brief',
|
|
|
|
|
'content' => [
|
|
|
|
|
'title' => 'Brief client',
|
|
|
|
|
'stepName' => 'clientBrief',
|
|
|
|
|
'stepIndex' => 1
|
|
|
|
|
],
|
|
|
|
|
])->changeStatus('listed');
|
|
|
|
|
|
|
|
|
|
$page->createChild([
|
|
|
|
|
'slug' => 'proposal',
|
|
|
|
|
'template' => 'proposal',
|
|
|
|
|
'content' => [
|
|
|
|
|
'title' => 'Offre commerciale',
|
|
|
|
|
'stepName' => 'proposal',
|
|
|
|
|
'stepIndex' => 2
|
|
|
|
|
]
|
|
|
|
|
])->changeStatus('listed');
|
|
|
|
|
|
|
|
|
|
$page->createChild([
|
|
|
|
|
'slug' => 'extended-brief',
|
|
|
|
|
'template' => 'extended-brief',
|
|
|
|
|
'content' => [
|
|
|
|
|
'title' => 'Brief enrichi',
|
2024-11-18 15:57:32 +01:00
|
|
|
'stepName' => 'extendedBrief',
|
2024-09-26 17:21:24 +02:00
|
|
|
'stepIndex' => 3
|
|
|
|
|
]
|
|
|
|
|
])->changeStatus('listed');
|
|
|
|
|
|
|
|
|
|
$page->createChild([
|
|
|
|
|
'slug' => 'industrial-ideation',
|
|
|
|
|
'template' => 'industrial-ideation',
|
|
|
|
|
'content' => [
|
|
|
|
|
'title' => 'Idéation industrielle',
|
|
|
|
|
'stepName' => 'industrialIdeation',
|
|
|
|
|
'stepIndex' => 4
|
|
|
|
|
]
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
$page->createChild([
|
|
|
|
|
'slug' => 'virtual-sample',
|
|
|
|
|
'template' => 'virtual-sample',
|
|
|
|
|
'content' => [
|
|
|
|
|
'title' => 'Échantillon virtuel',
|
|
|
|
|
'stepName' => 'virtualSample',
|
|
|
|
|
'stepIndex' => 5
|
|
|
|
|
]
|
|
|
|
|
])->changeStatus('listed');
|
|
|
|
|
|
|
|
|
|
$page->createChild([
|
|
|
|
|
'slug' => 'physical-sample',
|
|
|
|
|
'template' => 'physical-sample',
|
|
|
|
|
'content' => [
|
|
|
|
|
'title' => 'Échantillon physique',
|
|
|
|
|
'stepName' => 'physicalSample',
|
|
|
|
|
'stepIndex' => 6
|
|
|
|
|
]
|
|
|
|
|
]);
|
2024-12-20 09:39:20 +01:00
|
|
|
|
|
|
|
|
$page->update([
|
|
|
|
|
"currentStep" => "clientBrief"
|
|
|
|
|
]);
|
2024-09-26 17:21:24 +02:00
|
|
|
}
|
2024-09-18 13:05:55 +02:00
|
|
|
};
|