project blueprint : fix currentStep field
This commit is contained in:
parent
3477a6f2fd
commit
3b2f881424
6 changed files with 15 additions and 6 deletions
Binary file not shown.
|
|
@ -0,0 +1,5 @@
|
||||||
|
Uuid: 7cCbXLUJWENOMUwh
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Template: pdf
|
||||||
|
|
@ -2,6 +2,10 @@ Title: Offre commerciale
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Pdf: - file://7cCbXLUJWENOMUwh
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
Stepname: proposal
|
Stepname: proposal
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue