From d8b5c2a59af920073499dd82a63ffbeebd3244c0 Mon Sep 17 00:00:00 2001 From: buttflattery Date: Wed, 27 Mar 2019 03:17:26 +0500 Subject: [PATCH 1/3] updated the docs and changelogs --- ChangeLog.md | 4 +++- README.md | 19 ++++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index e2b2a59..6b73475 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.

1.0.0 - 22/10/2018

Added

+- 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. @@ -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`.

Changed

+ - 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 @@ -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.

Removed

- +- 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. diff --git a/README.md b/README.md index 81180ad..8aca27e 100644 --- a/README.md +++ b/README.md @@ -45,18 +45,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 ``. -- `classPrev (string)` : css classes for the button Previous, default `btn btn-info`. -- `iconPrev (string)` : the html string for the prev icon, defaults to ``. -- `classFinish (string)` : css classes for the button Finish, default `btn btn-success`. -- `iconFinish (string)` : the Html string for the icon, defaults to ``. -- `classAdd (string)` : css class for Add Row Button default to `btn btn-info` -- `iconAdd (string)` : the html string for the button default to `` +- `classNext (string)` : Css classes for the button Next, default `btn btn-info`. +- `iconNext (string)` : The html string for the Next button, defaults to ``. +- `classPrev (string)` : Css classes for the button Previous, default `btn btn-info`. +- `iconPrev (string)` : The html string for the prev icon, defaults to ``. +- `classFinish (string)` : Css classes for the button Finish, default `btn btn-success`. +- `iconFinish (string)` : The Html string for the icon, defaults to ``. +- `classAdd (string)` : Css class for Add Row Button default to `btn btn-info` +- `iconAdd (string)` : The html string for the button default to `` +- `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`. From 7c0b1afebfb4e9a51034f6c95bb7dc3b5ed34eb2 Mon Sep 17 00:00:00 2001 From: buttflattery Date: Wed, 27 Mar 2019 03:29:37 +0500 Subject: [PATCH 2/3] added new feature updates on the readme docs intro --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8aca27e..b8068e4 100644 --- a/README.md +++ b/README.md @@ -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 + +#### 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 Add New button which should dynamically add the set of inputs as needed. From 61e54ab729a3e121f98bf26498d82ae985af21e8 Mon Sep 17 00:00:00 2001 From: buttflattery Date: Wed, 27 Mar 2019 03:31:16 +0500 Subject: [PATCH 3/3] added new feature updates on the readme docs intro --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b8068e4..300b053 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ 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 : New Features Added +### UPDATE 2 : New Features Added since 25th March, 2019 #### Preview Step