Fix customer backend forms , fix site\index

backend create\update customer forms must display the same as the frontend
forms

site\index action should be friendly and related to this app
This commit is contained in:
2015-11-02 18:41:36 +01:00
parent ed1e0b6c2a
commit b6b5193120
10 changed files with 53 additions and 113 deletions

View File

@@ -71,7 +71,6 @@ class CustomerCreate extends \common\models\Customer
[['email'], 'required', 'when' => function($model) {
return !isset( $model->email ) || empty($model->phone) ;
} ,
// 'enableClientValidation' => false,
'whenClient' => "function (attribute, value) {
return false;
}",
@@ -92,7 +91,6 @@ class CustomerCreate extends \common\models\Customer
[['phone'], 'required', 'when' => function($model) {
return !isset( $model->email ) || empty( $model->email ) ;
} ,
// 'enableClientValidation' => false,
'whenClient' => "function (attribute, value) {
return false;
}",