Skip to content

Commit

Permalink
Fix example page code
Browse files Browse the repository at this point in the history
  • Loading branch information
zimudec committed Jun 15, 2021
1 parent 62e5395 commit 401c2b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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){
}
Expand Down Expand Up @@ -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 class="mx-auto" style="max-width: 400px;" data-request="onStep1" data-request-validate>
<form class="mx-auto" style="max-width: 400px;" data-request="onStep2" data-request-validate>
{{ form_token() }}
{% partial '@input_text.htm' label="Field 2" value=(field2) readonly=true %}
{% partial '@input_text.htm' label="Field 3" value=(field3) readonly=true %}
Expand All @@ -163,7 +163,7 @@ function onStep3()
{% elseif wizard.stepCurrent == 'step3' %}
{% partial '@header.htm' subtitle='This is the last step before finish the wizard' %}
<form class="mx-auto" style="max-width: 400px;" data-request="onStep2" data-request-validate>
<form class="mx-auto" style="max-width: 400px;" data-request="onStep3" data-request-validate>
{{ form_token() }}
{% partial '@input_select.htm' label="Select *" name="select" items=(selectData) %}
Expand Down
4 changes: 3 additions & 1 deletion updates/version.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
1.0.1:
- Initialize plugin.
1.0.2:
- Fix.
- Fix.
1.0.3:
- Fix example page code.

0 comments on commit 401c2b6

Please sign in to comment.