From 401c2b6155afe9272d1dc14a5df230574ea33e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Pavez?= Date: Tue, 15 Jun 2021 11:57:00 -0400 Subject: [PATCH] Fix example page code --- README.md | 6 +++--- updates/version.yaml | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8962607..4204445 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ function onInit() // This is useful when you need to update the data obtained from extra validations. ['step' => 'step2', 'name' => 'Step 2', 'validatePrevSteps' => true], ['step' => 'step3', 'name' => 'Step 3', 'forms' => [ - 'onStep2' => [ + 'onStep3' => [ 'validation' => ['select' => 'required'], 'extra_validation' => function($validator, $fields, $prevValidationsData){ } @@ -153,7 +153,7 @@ function onStep3() {% elseif wizard.stepCurrent == 'step2' %} {% partial '@header.htm' text=('Welcome ' ~ user.names) subtitle='This step does not require entering fields' %} -
+ {{ form_token() }} {% partial '@input_text.htm' label="Field 2" value=(field2) readonly=true %} {% partial '@input_text.htm' label="Field 3" value=(field3) readonly=true %} @@ -163,7 +163,7 @@ function onStep3() {% elseif wizard.stepCurrent == 'step3' %} {% partial '@header.htm' subtitle='This is the last step before finish the wizard' %} - + {{ form_token() }} {% partial '@input_select.htm' label="Select *" name="select" items=(selectData) %} diff --git a/updates/version.yaml b/updates/version.yaml index be193c0..7f8429d 100644 --- a/updates/version.yaml +++ b/updates/version.yaml @@ -1,4 +1,6 @@ 1.0.1: - Initialize plugin. 1.0.2: - - Fix. \ No newline at end of file + - Fix. +1.0.3: + - Fix example page code. \ No newline at end of file