Commit 3ebd0617 authored by Aster's avatar Aster Committed by waltermazza
Browse files

General Bug Fixes and Improvements

parent c85e8470
......@@ -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 arter/amos-wizflow:@dev
cp vendor/arter/amos-wizflow/example/* .
composer require elitedivision/amos-wizflow:@dev
cp vendor/elitedivision/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/arter/amos-wizflow/example`
- override all folders at the root of your yii2 app with the ones provided in `vendor/elitedivision/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' => '\arter\amos\wizflow\WizflowManager'
'class' => '\elitedivision\amos\wizflow\WizflowManager'
],
// etc ...
```
......@@ -102,7 +102,7 @@ public function actions()
return [
// other actions ...
'wizflow' => [
'class' => '\arter\amos\wizflow\WizardPlayAction'
'class' => '\elitedivision\amos\wizflow\WizardPlayAction'
],
];
}
......
{
"name" : "arter/amos-wizflow",
"name" : "elitedivision/amos-wizflow",
"description" : "The wizard UI pattern implemented using yii2-workflow",
"keywords": ["amos","yii2","extension","workflow"," wizard"],
"type" : "plugin",
......@@ -15,7 +15,7 @@
},
"autoload" : {
"psr-4" : {
"arter\\amos\\wizflow\\" : "src"
"elitedivision\\amos\\wizflow\\" : "src"
}
},
"require-dev": {
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
$params = require(__DIR__ . '/params.php');
......@@ -25,7 +11,7 @@ $config = [
'class' => 'raoul2000\workflow\source\file\WorkflowFileSource'
],
'wizflowManager' => [
'class' => '\arter\amos\wizflow\WizflowManager',
'class' => '\elitedivision\amos\wizflow\WizflowManager',
'workflowSourceName' => 'workflowSource'
],
'request' => [
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace app\controllers;
......@@ -28,7 +14,7 @@ class SiteController extends Controller
'class' => 'yii\web\ErrorAction',
],
'wizflow' => [
'class' => '\arter\amos\wizflow\WizardPlayAction'
'class' => '\elitedivision\amos\wizflow\WizardPlayAction'
]
];
}
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace app\models;
......@@ -22,7 +8,7 @@ use yii\helpers\Html;
/**
* ContactForm is the model behind the contact form.
*/
class BlueForm extends Model implements \arter\amos\wizflow\WizflowModelInterface
class BlueForm extends Model implements \elitedivision\amos\wizflow\WizflowModelInterface
{
public $blueStuff;
public $status;
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace app\models;
......@@ -21,7 +7,7 @@ use yii\base\Model;
/**
* ContactForm is the model behind the contact form.
*/
class FinalForm extends Model implements \arter\amos\wizflow\WizflowModelInterface
class FinalForm extends Model implements \elitedivision\amos\wizflow\WizflowModelInterface
{
public $rate;
public $status;
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace app\models;
......@@ -22,7 +8,7 @@ use yii\helpers\Html;
/**
* ContactForm is the model behind the contact form.
*/
class GreenForm extends Model implements \arter\amos\wizflow\WizflowModelInterface
class GreenForm extends Model implements \elitedivision\amos\wizflow\WizflowModelInterface
{
public $greenStuff;
public $status;
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace app\models;
......@@ -22,7 +8,7 @@ use yii\base\Model;
/**
* ContactForm is the model behind the contact form.
*/
class Step1Form extends Model implements \arter\amos\wizflow\WizflowModelInterface
class Step1Form extends Model implements \elitedivision\amos\wizflow\WizflowModelInterface
{
public $favoriteColor;
public $status;
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace app\models;
......@@ -23,7 +9,7 @@ use yii\helpers\Html;
/**
* ContactForm is the model behind the contact form.
*/
class WelcomeForm extends Model implements \arter\amos\wizflow\WizflowModelInterface
class WelcomeForm extends Model implements \elitedivision\amos\wizflow\WizflowModelInterface
{
public $name;
public $email;
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
namespace app\models;
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
/* @var $this \yii\web\View */
/* @var $content string */
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
use yii\helpers\Html;
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
/* @var $this yii\web\View */
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
use yii\helpers\Html;
use yii\widgets\ActiveForm;
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
use yii\helpers\Html;
use yii\widgets\ActiveForm;
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
use yii\helpers\Html;
use yii\widgets\ActiveForm;
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
use yii\helpers\Html;
use yii\widgets\ActiveForm;
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
*
* @see https://repo.art-er.it Developers' community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter
* @category CategoryName
* @author Elite Division S.r.l.
*/
use yii\helpers\Html;
use yii\widgets\ActiveForm;
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
* Lombardia Informatica S.p.A.
* OPEN 2.0
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter\amos\wizflow
* @package elitedivision\amos\wizflow
* @category CategoryName
* @author Elite Division S.r.l.
* @author Lombardia Informatica S.p.A.
*/
namespace arter\amos\wizflow;
namespace elitedivision\amos\wizflow;
use Yii;
use yii\base\Model;
......@@ -23,7 +23,7 @@ use yii\web\UploadedFile;
/**
* Class WizardPlayAction
* @package arter\amos\wizflow
* @package elitedivision\amos\wizflow
*/
class WizardPlayAction extends \yii\base\Action
{
......
<?php
/**
* Copyright 2020 Art-ER S. Cons. P.A.
* EROI - Emilia Romagna Open Innovation is based on:
* https://www.open2.0.regione.lombardia.it
* Lombardia Informatica S.p.A.
* OPEN 2.0
*
* @see http://example.com Developers'community
* @license GPLv3
* @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
*
* @package arter\amos\wizflow
* @package elitedivision\amos\wizflow
* @category CategoryName
* @author Elite Division S.r.l.
* @author Lombardia Informatica S.p.A.
*/
namespace arter\amos\wizflow;
namespace elitedivision\amos\wizflow;
use raoul2000\workflow\base\Status;
use raoul2000\workflow\source\IWorkflowSource;
......@@ -25,7 +25,7 @@ use yii\base\Model;
/**
* Class WizflowManager
* Implement the Wizard UI design pattern using yii2-workflow.
* @package arter\amos\wizflow
* @package elitedivision\amos\wizflow
*/
class WizflowManager extends \yii\base\BaseObject
{
......
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