project blueprint : fix currentStep field

This commit is contained in:
isUnknown 2024-11-18 15:16:22 +01:00
parent 3477a6f2fd
commit 3b2f881424
6 changed files with 15 additions and 6 deletions

View file

@ -0,0 +1,5 @@
Uuid: 7cCbXLUJWENOMUwh
----
Template: pdf

View file

@ -2,6 +2,10 @@ Title: Offre commerciale
---- ----
Pdf: - file://7cCbXLUJWENOMUwh
----
Stepname: proposal Stepname: proposal
---- ----

View file

@ -22,8 +22,8 @@ tabs:
options: options:
type: query type: query
query: page.getSteps query: page.getSteps
text: "{{ item.text }}" text: "{{ item.label }}"
value: "{{ item.value }}" value: "{{ item.id }}"
- width: 1/3 - width: 1/3
fields: fields:
client: client:

View file

@ -17,5 +17,9 @@ options:
tabs: tabs:
contentTab: contentTab:
fields: fields:
pdf:
label: Document(s)
type: files
uploads: pdf
stepName: stepName:
type: hidden type: hidden

View file

@ -13,10 +13,6 @@ class ProjectPage extends Page {
return $steps; return $steps;
} }
public function getCurrentStep() {
return $this->getStepsLabel()[$this->currentStep()];
}
private function createStep($child) { private function createStep($child) {
$files = []; $files = [];
$uri = null; $uri = null;