From f37a4fe1741ada40026285a4d26e511d39eefa0d Mon Sep 17 00:00:00 2001 From: Eugeny Galkovskiy Date: Thu, 14 Sep 2017 11:57:21 +0300 Subject: [PATCH] 14/09/17 1 --- frontend/controllers/SiteController.php | 24 ++++++++++++------------ frontend/views/site/appment.php | 0 frontend/views/site/contact.php | 10 +++++----- frontend/web/css/style.turquoise.css | 3 +++ 4 files changed, 20 insertions(+), 17 deletions(-) create mode 100644 frontend/views/site/appment.php diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index af69a76..d3fd46b 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -1,6 +1,6 @@ render('index'); } - + /** * Displays contact page. * @@ -67,7 +67,7 @@ ] ); } - + /** * Displays about page. * @@ -77,7 +77,7 @@ { return $this->render('about'); } - + /** * Action to view robots.txt file dinamycli * @@ -98,23 +98,23 @@ $response->headers->set('Content-Type', 'text/plain'); return $this->renderFile($meta[ 'uri' ]); } - + public function actionFeedback() { Yii::$app->response->format = Response::FORMAT_JSON; - + /** * @var Mailer $mailer */ $mailer = \Yii::$app->get('smtpmailer'); $settings = Settings::getInstance(); - + if (empty(Yii::$app->request->post())) { throw new BadRequestHttpException(); } else { $model = new Feedback(); if ($model->load(Yii::$app->request->post()) && $model->save()) { - + $mailer->compose( 'feedback', [ @@ -125,7 +125,7 @@ ->setTo($settings->email) ->setSubject(\Yii::t('app', 'Feedback')) ->send(); - + return [ 'success' => true, 'message' => 'Success message', diff --git a/frontend/views/site/appment.php b/frontend/views/site/appment.php new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/frontend/views/site/appment.php diff --git a/frontend/views/site/contact.php b/frontend/views/site/contact.php index e7a678b..a1a5928 100755 --- a/frontend/views/site/contact.php +++ b/frontend/views/site/contact.php @@ -54,7 +54,7 @@ JS;
-

Address

+

Адрес

street )) { @@ -85,7 +85,7 @@ JS;

-

Call center

+

Телефон

This number is toll free if calling from Great Britain otherwise we advise you to use the electronic form of communication .

-

Electronic support

+

E-mail

Please feel free to write an email to us or to use our electronic ticketing system .