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
----

View file

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

View file

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

View file

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