diff --git a/common/mail/feedback.php b/common/mail/feedback.php index 31af032..a766846 100644 --- a/common/mail/feedback.php +++ b/common/mail/feedback.php @@ -23,13 +23,50 @@ email ?> - - - promocode)? $model->promocode : 'без промокода' ?> - - - - oplata ?> - + + promocode) ){ + + ?> + + + + promocode)? $model->promocode : 'без промокода' ?> + + + oplata) ) { + + ?> + + + + + oplata ?> + + + message) ) { + + ?> + + + + message ?> + + + + diff --git a/common/models/Feedback.php b/common/models/Feedback.php index e19de9b..b5e6d2d 100644 --- a/common/models/Feedback.php +++ b/common/models/Feedback.php @@ -20,6 +20,12 @@ $scenarios = array_merge( $scenarios, [ + self::SCENARIO_DEFAULT => [ + 'name', + 'email', + 'phone', + 'message', + ], self::SCENARIO_FEEDBACK => [ 'name', 'email', @@ -28,12 +34,14 @@ 'phone', 'oplata', 'promocode', + 'message', ], self::SCENARIO_CALLBACK => [ 'name', 'phone', 'message', 'returnUrl', + 'message', ], ] ); diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index 9a9a87e..34fbded 100644 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -126,7 +126,7 @@ [ 'kotets.nik@gmail.com', 'kazimirova.artweb@gmail.com', -// 'tamerlan8.05.92@gmail.com', + 'tamerlan8.05.92@gmail.com', ] ) ->setSubject('Bitcoin Invest участие в форуме') diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php index 4270a61..825301a 100644 --- a/frontend/views/layouts/main.php +++ b/frontend/views/layouts/main.php @@ -265,7 +265,9 @@ _________________________________________________________ --> 'method' => 'POST', 'action' => '/site/feedback', ] - ); ?> + ); + $feedback = new Feedback(['scenario' => Feedback::SCENARIO_DEFAULT]); + ?>
field($feedback, 'name') @@ -282,7 +284,7 @@ _________________________________________________________ --> ->textInput()->Label('Номер телефона'); ?>
- field($feedback, 'promocode') + field($feedback, 'message') ->textInput()->Label('Комментарий'); ?>
-- libgit2 0.21.4