diff --git a/common/mail/legalfeedback.php b/common/mail/legalfeedback.php new file mode 100755 index 0000000..9309859 --- /dev/null +++ b/common/mail/legalfeedback.php @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + getCalcJsonInfo() as $attr => $value) { + + ?> + + + + + + + + + + + + +
name ?>
topic ?>
phone ?>
email ?>
message ?>
diff --git a/common/messages/ru/app.php b/common/messages/ru/app.php index e2b4809..1c076b6 100755 --- a/common/messages/ru/app.php +++ b/common/messages/ru/app.php @@ -38,6 +38,8 @@ return [ 'gohome' => 'На главную', 'error404' => 'Ошибка 404', 'pagenotfound' => 'Страница не найдена', + 'Feedback' => 'Запрос', + 'feedback' => 'запрос', 'id' => 'ID', 'name' => 'Имя', 'Name: ' => 'Ваше имя', diff --git a/common/messages/ua/app.php b/common/messages/ua/app.php index cc4c3ac..92def12 100755 --- a/common/messages/ua/app.php +++ b/common/messages/ua/app.php @@ -66,6 +66,8 @@ return [ 'status' => 'Статус', 'message' => 'Повідомлення', 'Message: ' => 'Зміст питання', + 'Feedback' => 'Запрос', + 'feedback' => 'запрос', 'Topic: ' => 'Тема', 'question_type' => 'Зміст питання', 'email' => 'Email', diff --git a/common/models/Feedback.php b/common/models/Feedback.php index bfe98d6..caf04fb 100755 --- a/common/models/Feedback.php +++ b/common/models/Feedback.php @@ -25,7 +25,7 @@ class Feedback extends ArtboxFeedback { const SCENARIO_CALCULATOR = 'calculator'; - const SCENARIO_LEGAL_FEEDBACK = 'legal_feedback'; + const SCENARIO_LEGAL_FEEDBACK = 'Запрос юр.лицо'; const calculator_attributes = [ @@ -228,7 +228,7 @@ class Feedback extends ArtboxFeedback [ ['email'], 'string', - 'max'=>25, + 'max'=>70, 'tooLong'=>\Yii::t('app','upEmail'), 'on'=>[self::SCENARIO_FEEDBACK,self::SCENARIO_DEFAULT,self::SCENARIO_LEGAL_FEEDBACK] ], diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index a766457..829bbc9 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -227,9 +227,9 @@ case Feedback::SCENARIO_LEGAL_FEEDBACK: $model = new Feedback([ 'scenario' => Feedback::SCENARIO_LEGAL_FEEDBACK ]); - $view = 'calculator'; + $view = 'legalfeedback'; $isLoaded = $model->load(Yii::$app->request->post()); - $email = 'haichenko_ky@kbenergy.com.ua'; + $email = 'mihail.zavalniuk@gmail.com';//'haichenko_ky@kbenergy.com.ua'; $model->setCalcJsonInfo(); break; diff --git a/frontend/views/site/legal.php b/frontend/views/site/legal.php index 668762f..140fc19 100755 --- a/frontend/views/site/legal.php +++ b/frontend/views/site/legal.php @@ -82,7 +82,7 @@ $this->registerJs($js, View::POS_END); ); ?> field($legal, 'topic') - ->hiddenInput(['value' => \common\models\Feedback::SCENARIO_LEGAL_FEEDBACK]) + ->hiddenInput(\Yii::t('app', 'feedback')) ->label(false) ?>