From 365b5721357491d0bba5d8f26cccab8182a8b3cd Mon Sep 17 00:00:00 2001 From: Anastasia Date: Fri, 22 Jun 2018 17:56:25 +0300 Subject: [PATCH] email to phone in contact --- frontend/config/main.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/config/main.php b/frontend/config/main.php index 1cde4bb..f79145a 100755 --- a/frontend/config/main.php +++ b/frontend/config/main.php @@ -92,7 +92,7 @@ 'activeRecord' => "artbox\core\models\Feedback", 'attributes' => [ 'name', - 'email', + 'phone', 'message', ], 'rules' => [ @@ -107,15 +107,15 @@ 'labels' => [ 'name' => \Yii::t('app','Name'), 'message' => \Yii::t('app','Yours question'), - 'phone' => \Yii::t('app','Email'), + 'phone' => \Yii::t('app','Phone'), ], 'inputOptions' => [ 'name' => [ 'template' => '
{input}
' ], - 'email' => [ - 'template' => '
{input}
' + 'phone' => [ + 'template' => '
{input}
' ], 'message' => [ 'type' => 'textarea', @@ -129,7 +129,7 @@ 'sendEmail' => false, 'ajax' => true, 'formId' => 'contact-form', - 'scenario' => 'feedback', + 'scenario' => 'callback', 'successCallback' => 'function (data) { document.getElementById("contact-form").reset(); if (data.status == "success"){ -- libgit2 0.21.4