Commit b93e301d authored by Aster's avatar Aster Committed by waltermazza
Browse files

General Bug Fixes and Improvements

parent 3ebd0617
......@@ -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'
],
];
}
......
{
"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": {
......
......@@ -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' => [
......
......@@ -14,7 +14,7 @@ class SiteController extends Controller
'class' => 'yii\web\ErrorAction',
],
'wizflow' => [
'class' => '\elitedivision\amos\wizflow\WizardPlayAction'
'class' => '\arter\amos\wizflow\WizardPlayAction'
]
];
}
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
<?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
{
......
<?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()
{
......
<?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
{
......
<?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 [
......
<?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 [
......
<?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 [
......
<?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
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment