Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
buttflattery committed Mar 27, 2019
2 parents df61f42 + 61e54ab commit 73fa63b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
4 changes: 3 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
<h1>1.0.0 - 22/10/2018</h1>

<h3>Added</h3>
- March 27, 2019 [FEATURE:1beb505](https://github.com/buttflattery/yii2-formwizard/commit/1beb5050f8fbaa8d8b8cb6af89cc8cb8de20fe7d) (feature/final-preview) Added new feature Preview Step.
- March 18, 2019 [FEATURE:5769d27](https://github.com/buttflattery/yii2-formwizard/commit/5769d27fc9059cf4d7d5f7348d0a67213678c8c9) Added new feature for the Tabular step

- March 13, 2019 [ENH:4e52390](https://github.com/buttflattery/yii2-formwizard/commit/4e523900e3f5312a1bc72e7561b5b43a731f1fb3) Added hint option for the inputs to provide customized text.
Expand All @@ -23,6 +24,7 @@ All notable changes to this project will be documented in this file.
- Oct 7, 2018 [ENH:d8b14a6](https://github.com/buttflattery/yii2-formwizard/commit/d8b14a6de252bb0ff6e48963e2ecebdfbbeb9adf) updated the sections to customize all fields with `textarea`, `radio`, `checkbox`.

<h3>Changed </h3>

- March 25, 2019 [BUG:9e44bf7](https://github.com/buttflattery/yii2-formwizard/commit/9e44bf7805f7c78f7a33d746a1d42bf736bfbdd6) Fixed the bug with the add row when using widgets, closes #14.

- Dec 6, 2018 [BUG:19c9619](https://github.com/buttflattery/yii2-formwizard/commit/19c96197bceb3767d4e9623897bd1f20ee3de02b) Added fix for kartik/depdrop widget Fixes #8
Expand All @@ -48,5 +50,5 @@ All notable changes to this project will be documented in this file.
- Oct 10, 2018 [BUG:3a7bc4a](https://github.com/buttflattery/yii2-formwizard/commit/3a7bc4aefc50e0be2b597b5ffa233c55c5aa4b97) updated the sections with ajax validation fix.

<h3>Removed</h3>

- March 25, 2019 [2d7d08f](https://github.com/buttflattery/yii2-formwizard/commit/2d7d08f5aa6a6489a57e30a87baaa67e3225b29f) removed the `form-inline` class for the tabular form.
- Nov 21, 2018 [BUG:30cd5d8](https://github.com/buttflattery/yii2-formwizard/commit/30cd5d85dc135084011b3e61407c940962a6ce95) remove manual setting of `formOptions['action']` in the `setDefaults()` method.
28 changes: 18 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ A Yii2 plugin used for creating stepped form or form wizard using `yii\widgets\A
- [jQuery v2.2.4](https://jquery.com/download/)
- [Bootstrap v3.3.7](https://getbootstrap.com/docs/3.3/) && [Bootstrap v4](http://getbootstrap.com/)

### UPDATE 2 : Tabular Step Support
### UPDATE 2 : New Features Added since 25th March, 2019

#### Preview Step

When enabled using the `"enablePreview"=>true` in the main options of the formwizard, after adding all the steps the last step which previews all the inputs entered for the steps. The user can navigate to the step by clicking on the list label inside the preview window. This option is turned off by default, and users will need to specify the `enablePreview` in the main options. it looks like below
![preview](https://user-images.githubusercontent.com/1536454/55037359-545c2f00-503f-11e9-98a0-25382c49baa6.png)

#### Tabular Step

A new feature for tabular steps has been added which will help you to configure adressbook like features into the formwizard, there have been several quries related to such feature where we need to add multiple adresses against a single user, or add multiple tags against any album and we need to be able to have a <kbd>Add New</kbd> button which should dynamically add the set of inputs as needed.

Expand Down Expand Up @@ -45,18 +52,19 @@ See all [demos](http://yii2plugins.idowstech.com/formwizard/index) with all opti
#### Widget options

- `wizardContainerId (string)`: Id of the main container for the wizard.
- `formOptions (array)`: specify the [ActiveForm](https://www.yiiframework.com/doc/api/2.0/yii-widgets-activeform) properties.
- `formOptions (array)`: Specify the [ActiveForm](https://www.yiiframework.com/doc/api/2.0/yii-widgets-activeform) properties.
- `labelNext (string)` : Next button label, default value `Next`.
- `labelPrev (string)` : Previous button label, default value `Previous`.
- `labelFinish (string)` : Finish button label, default value `Finish`.
- `classNext (string)` : css classes for the button Next, default `btn btn-info`.
- `iconNext (string)` : the html string for the Next button, defaults to `<i class="formwizard-arrow-right-alt1-ico"></i>`.
- `classPrev (string)` : css classes for the button Previous, default `btn btn-info`.
- `iconPrev (string)` : the html string for the prev icon, defaults to `<i class="formwizard-arrow-left-alt1-ico"></i>`.
- `classFinish (string)` : css classes for the button Finish, default `btn btn-success`.
- `iconFinish (string)` : the Html string for the icon, defaults to `<i class="formwizard-check-alt-ico"></i>`.
- `classAdd (string)` : css class for Add Row Button default to `btn btn-info`
- `iconAdd (string)` : the html string for the button default to `<i class="formwizard-plus-ico"></i>`
- `classNext (string)` : Css classes for the button Next, default `btn btn-info`.
- `iconNext (string)` : The html string for the Next button, defaults to `<i class="formwizard-arrow-right-alt1-ico"></i>`.
- `classPrev (string)` : Css classes for the button Previous, default `btn btn-info`.
- `iconPrev (string)` : The html string for the prev icon, defaults to `<i class="formwizard-arrow-left-alt1-ico"></i>`.
- `classFinish (string)` : Css classes for the button Finish, default `btn btn-success`.
- `iconFinish (string)` : The Html string for the icon, defaults to `<i class="formwizard-check-alt-ico"></i>`.
- `classAdd (string)` : Css class for Add Row Button default to `btn btn-info`
- `iconAdd (string)` : The html string for the button default to `<i class="formwizard-plus-ico"></i>`
- `enablePreview (boolean)` : Adds a Preview Step as the last step in the form wizard where you can preview all the entered inputs grouped by steps, clicking on any step will navigate to that step for quick edit, it defaults to `false`.
- `steps (array)` : An array of the steps(`array`), the steps can have models dedicated to each step, or a single model for all steps. Following options are recognized when specifying a step.

- `type (string)` : The type of the step, defaults to `default`. This option is used if you need to have tabular inputs for the step by specifying the type as `tabular`, you can use the provided constants like `FormWizard::STEP_TYPE_TABULAR` or `FormWizard::STEP_TYPE_DEFAULT`.
Expand Down

0 comments on commit 73fa63b

Please sign in to comment.