Commit d23c67c036d687dd5f0021453620c282c054fb09
1 parent
df90a7cb
правки по формам
Showing
4 changed files
with
6 additions
and
18 deletions
Show diff stats
common/messages/ua/app.php
frontend/config/main.php
... | ... | @@ -11,6 +11,7 @@ |
11 | 11 | |
12 | 12 | $send="Отправить"; |
13 | 13 | $request1='Ваша заявка'; |
14 | + | |
14 | 15 | if(strpos($_SERVER['REQUEST_URI'],"/ua")!==false) { |
15 | 16 | $send = "Вiдправити"; |
16 | 17 | |
... | ... | @@ -314,7 +315,7 @@ |
314 | 315 | ], |
315 | 316 | 'buttonTemplate' => '<div class="button-wr">{button}</div>', |
316 | 317 | |
317 | - 'buttonContent' => '<i class="fa fa-envelope-o"></i>'.$send, | |
318 | + 'buttonContent' => $send, | |
318 | 319 | 'sendEmail' => true, |
319 | 320 | 'email' => 'alkhonko@gmail.com', |
320 | 321 | 'subject' => 'test tt22', | ... | ... |
frontend/controllers/SiteController.php
... | ... | @@ -45,18 +45,6 @@ |
45 | 45 | ]; |
46 | 46 | } |
47 | 47 | |
48 | - public function actionSave(){ | |
49 | - | |
50 | - $model=new Feedback(); | |
51 | - $model->setScenario(Feedback::SCENARIO_CALLBACK); | |
52 | - | |
53 | - if(Yii::$app->request->post() && $model->load(Yii::$app->request->post())) | |
54 | - { | |
55 | - $model->save(); | |
56 | - Yii::$app->response->format = Response::FORMAT_JSON; | |
57 | - return Yii::$app->request->referrer; | |
58 | - } | |
59 | - } | |
60 | 48 | |
61 | 49 | |
62 | 50 | /** | ... | ... |
frontend/views/site/index.php
... | ... | @@ -12,14 +12,13 @@ use artbox\core\models\Language; |
12 | 12 | * @var object $model artbox\core\models\Feedback |
13 | 13 | */ |
14 | 14 | |
15 | - | |
16 | 15 | $send="Отправить"; |
17 | 16 | $request1='Ваша заявка'; |
18 | 17 | if(strpos($_SERVER['REQUEST_URI'],"/ua")!==false) { |
19 | 18 | $send = "Вiдправити"; |
20 | 19 | |
21 | -} | |
22 | 20 | |
21 | +} | |
23 | 22 | |
24 | 23 | $settings = Settings::getInstance(); |
25 | 24 | |
... | ... | @@ -452,9 +451,9 @@ $moduleRequest=\Yii::$app->getModule('request_1'); |
452 | 451 | <div id="callback" class="forms_" style="display: none;"> |
453 | 452 | <span id="modal_close"></span> |
454 | 453 | <div class="forms-wrapp"> |
455 | - <div class="forms-title"><?=\Yii::t('app','Set your request');?></div> | |
454 | + <div class="forms-title"><?= \Yii::t('app','Callback');?></div> | |
456 | 455 | <?php $module2=\Yii::$app->getModule('request_2'); |
457 | - echo $moduleRequest->renderForm($this); | |
456 | + echo $module2->renderForm($this); | |
458 | 457 | ?> |
459 | 458 | |
460 | 459 | ... | ... |