Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elitedivision
amos-wizflow
Commits
b93e301d
Commit
b93e301d
authored
May 04, 2022
by
Aster
Committed by
waltermazza
May 04, 2022
Browse files
General Bug Fixes and Improvements
parent
3ebd0617
Changes
16
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
b93e301d
...
...
@@ -61,15 +61,15 @@ Here is a summary of commands to run to install the example Wizflow application.
composer global require "fxp/composer-asset-plugin:~1.2.2"
composer create-project yiisoft/yii2-app-basic wizflow 2.0.9
cd wizflow
composer require
elitedivision
/amos-wizflow:@dev
cp vendor/
elitedivision
/amos-wizflow/example/* .
composer require
arter
/amos-wizflow:@dev
cp vendor/
arter
/amos-wizflow/example/* .
```
To install this demo app you must :
-
create a new yii2 application based on the
**basic**
template. To do so, follow
[
Yii2 installation guide
](
http://www.yiiframework.com/download/
)
-
install the
*amos-wizflow*
extension
-
override all folders at the root of your yii2 app with the ones provided in
`vendor/
elitedivision
/amos-wizflow/example`
-
override all folders at the root of your yii2 app with the ones provided in
`vendor/
arter
/amos-wizflow/example`
If you already have a running Yii2 application based on the
*basic*
template, here are the steps you can perform manually:
...
...
@@ -78,7 +78,7 @@ If you already have a running Yii2 application based on the *basic* template, he
```
php
'components'
=>
[
'wizflowManager'
=>
[
'class'
=>
'\
elitedivision
\amos\wizflow\WizflowManager'
'class'
=>
'\
arter
\amos\wizflow\WizflowManager'
],
// etc ...
```
...
...
@@ -102,7 +102,7 @@ public function actions()
return
[
// other actions ...
'wizflow'
=>
[
'class'
=>
'\
elitedivision
\amos\wizflow\WizardPlayAction'
'class'
=>
'\
arter
\amos\wizflow\WizardPlayAction'
],
];
}
...
...
composer.json
View file @
b93e301d
{
"name"
:
"
elitedivision
/amos-wizflow"
,
"name"
:
"
arter
/amos-wizflow"
,
"description"
:
"The wizard UI pattern implemented using yii2-workflow"
,
"keywords"
:
[
"amos"
,
"yii2"
,
"extension"
,
"workflow"
,
" wizard"
],
"type"
:
"plugin"
,
"
license
"
:
"BSD-3-Clause"
,
"
proscription
"
:
"BSD-3-Clause"
,
"minimum-stability"
:
"stable"
,
"require"
:
{
"php"
:
">=5.4.0"
,
...
...
@@ -15,7 +15,7 @@
},
"autoload"
:
{
"psr-4"
:
{
"
elitedivision
\\amos\\wizflow\\"
:
"src"
"
arter
\\amos\\wizflow\\"
:
"src"
}
},
"require-dev"
:
{
...
...
example/config/web.php
View file @
b93e301d
...
...
@@ -11,7 +11,7 @@ $config = [
'class'
=>
'raoul2000\workflow\source\file\WorkflowFileSource'
],
'wizflowManager'
=>
[
'class'
=>
'\
elitedivision
\amos\wizflow\WizflowManager'
,
'class'
=>
'\
arter
\amos\wizflow\WizflowManager'
,
'workflowSourceName'
=>
'workflowSource'
],
'request'
=>
[
...
...
example/controllers/SiteController.php
View file @
b93e301d
...
...
@@ -14,7 +14,7 @@ class SiteController extends Controller
'class'
=>
'yii\web\ErrorAction'
,
],
'wizflow'
=>
[
'class'
=>
'\
elitedivision
\amos\wizflow\WizardPlayAction'
'class'
=>
'\
arter
\amos\wizflow\WizardPlayAction'
]
];
}
...
...
example/models/BlueForm.php
View file @
b93e301d
...
...
@@ -8,7 +8,7 @@ use yii\helpers\Html;
/**
* ContactForm is the model behind the contact form.
*/
class
BlueForm
extends
Model
implements
\
elitedivision
\amos\wizflow\WizflowModelInterface
class
BlueForm
extends
Model
implements
\
arter
\amos\wizflow\WizflowModelInterface
{
public
$blueStuff
;
public
$status
;
...
...
example/models/FinalForm.php
View file @
b93e301d
...
...
@@ -7,7 +7,7 @@ use yii\base\Model;
/**
* ContactForm is the model behind the contact form.
*/
class
FinalForm
extends
Model
implements
\
elitedivision
\amos\wizflow\WizflowModelInterface
class
FinalForm
extends
Model
implements
\
arter
\amos\wizflow\WizflowModelInterface
{
public
$rate
;
public
$status
;
...
...
example/models/GreenForm.php
View file @
b93e301d
...
...
@@ -8,7 +8,7 @@ use yii\helpers\Html;
/**
* ContactForm is the model behind the contact form.
*/
class
GreenForm
extends
Model
implements
\
elitedivision
\amos\wizflow\WizflowModelInterface
class
GreenForm
extends
Model
implements
\
arter
\amos\wizflow\WizflowModelInterface
{
public
$greenStuff
;
public
$status
;
...
...
example/models/Step1Form.php
View file @
b93e301d
...
...
@@ -8,7 +8,7 @@ use yii\base\Model;
/**
* ContactForm is the model behind the contact form.
*/
class
Step1Form
extends
Model
implements
\
elitedivision
\amos\wizflow\WizflowModelInterface
class
Step1Form
extends
Model
implements
\
arter
\amos\wizflow\WizflowModelInterface
{
public
$favoriteColor
;
public
$status
;
...
...
example/models/WelcomeForm.php
View file @
b93e301d
...
...
@@ -9,7 +9,7 @@ use yii\helpers\Html;
/**
* ContactForm is the model behind the contact form.
*/
class
WelcomeForm
extends
Model
implements
\
elitedivision
\amos\wizflow\WizflowModelInterface
class
WelcomeForm
extends
Model
implements
\
arter
\amos\wizflow\WizflowModelInterface
{
public
$name
;
public
$email
;
...
...
src/WizardPlayAction.php
View file @
b93e301d
<?php
/**
*
Lombardia Informatica S.p.A.
*
OPEN 2.0
*
Emilia Romagna Open Innovation
*
Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package
elitedivision
\amos\wizflow
* @package
arter
\amos\wizflow
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace
elitedivision
\amos\wizflow
;
namespace
arter
\amos\wizflow
;
use
Yii
;
use
yii\base\Model
;
...
...
@@ -23,7 +19,7 @@ use yii\web\UploadedFile;
/**
* Class WizardPlayAction
* @package
elitedivision
\amos\wizflow
* @package
arter
\amos\wizflow
*/
class
WizardPlayAction
extends
\
yii\base\Action
{
...
...
src/WizflowManager.php
View file @
b93e301d
<?php
/**
*
Lombardia Informatica S.p.A.
*
OPEN 2.0
*
Emilia Romagna Open Innovation
*
Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package
elitedivision
\amos\wizflow
* @package
arter
\amos\wizflow
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace
elitedivision
\amos\wizflow
;
namespace
arter
\amos\wizflow
;
use
raoul2000\workflow\base\Status
;
use
raoul2000\workflow\source\IWorkflowSource
;
...
...
@@ -25,7 +21,7 @@ use yii\base\Model;
/**
* Class WizflowManager
* Implement the Wizard UI design pattern using yii2-workflow.
* @package
elitedivision
\amos\wizflow
* @package
arter
\amos\wizflow
*/
class
WizflowManager
extends
\
yii\base\BaseObject
{
...
...
@@ -94,7 +90,6 @@ class WizflowManager extends \yii\base\BaseObject
/**
* Loads existing wizard data if available.
*
* @see \yii\base\Object::init()
*/
public
function
init
()
{
...
...
src/WizflowModelInterface.php
View file @
b93e301d
<?php
/**
*
Lombardia Informatica S.p.A.
*
OPEN 2.0
*
Emilia Romagna Open Innovation
*
Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package
elitedivision
\amos\wizflow
* @package
arter
\amos\wizflow
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace
elitedivision
\amos\wizflow
;
namespace
arter
\amos\wizflow
;
/**
* Interface WizflowModelInterface
* Interface that must be implemented by all models used by the wizflow manager component
* @package
elitedivision
\amos\wizflow
* @package
arter
\amos\wizflow
*/
interface
WizflowModelInterface
{
...
...
src/i18n/en-GB/messages.php
View file @
b93e301d
<?php
/**
*
Lombardia Informatica S.p.A.
*
OPEN 2.0
*
Emilia Romagna Open Innovation
*
Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package
elitedivision
\amos\wizflow\i18n\en-GB
* @package
arter
\amos\wizflow\i18n\en-GB
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
return
[
...
...
src/i18n/en-US/messages.php
View file @
b93e301d
<?php
/**
*
Lombardia Informatica S.p.A.
*
OPEN 2.0
*
Emilia Romagna Open Innovation
*
Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package
elitedivision
\amos\wizflow\i18n\en-US
* @package
arter
\amos\wizflow\i18n\en-US
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
return
[
...
...
src/i18n/it-IT/messages.php
View file @
b93e301d
<?php
/**
*
Lombardia Informatica S.p.A.
*
OPEN 2.0
*
Emilia Romagna Open Innovation
*
Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package
elitedivision
\amos\wizflow\i18n\it-IT
* @package
arter
\amos\wizflow\i18n\it-IT
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
return
[
...
...
src/widgets/WizflowPrevAndContinueButtonWidget.php
View file @
b93e301d
<?php
/**
*
Lombardia Informatica S.p.A.
*
OPEN 2.0
*
Emilia Romagna Open Innovation
*
Arter
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package
elitedivision
\amos\wizflow\widgets
* @package
arter
\amos\wizflow\widgets
* @category CategoryName
* @author Lombardia Informatica S.p.A.
*/
namespace
elitedivision
\amos\wizflow\widgets
;
namespace
arter
\amos\wizflow\widgets
;
use
elitedivision
\amos\core\helpers\Html
;
use
elitedivision
\amos\core\module\BaseAmosModule
;
use
arter
\amos\core\helpers\Html
;
use
arter
\amos\core\module\BaseAmosModule
;
use
yii\base\Widget
;
use
yii\helpers\ArrayHelper
;
/**
* Class WizflowPrevAndContinueButtonWidget
* @package
elitedivision
\amos\wizflow\widgets
* @package
arter
\amos\wizflow\widgets
*/
class
WizflowPrevAndContinueButtonWidget
extends
Widget
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment