Commit 365b5721357491d0bba5d8f26cccab8182a8b3cd

Authored by Anastasia
1 parent 765d5dc9

email to phone in contact

Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
frontend/config/main.php
@@ -92,7 +92,7 @@ @@ -92,7 +92,7 @@
92 'activeRecord' => "artbox\core\models\Feedback", 92 'activeRecord' => "artbox\core\models\Feedback",
93 'attributes' => [ 93 'attributes' => [
94 'name', 94 'name',
95 - 'email', 95 + 'phone',
96 'message', 96 'message',
97 ], 97 ],
98 'rules' => [ 98 'rules' => [
@@ -107,15 +107,15 @@ @@ -107,15 +107,15 @@
107 'labels' => [ 107 'labels' => [
108 'name' => \Yii::t('app','Name'), 108 'name' => \Yii::t('app','Name'),
109 'message' => \Yii::t('app','Yours question'), 109 'message' => \Yii::t('app','Yours question'),
110 - 'phone' => \Yii::t('app','Email'), 110 + 'phone' => \Yii::t('app','Phone'),
111 ], 111 ],
112 112
113 'inputOptions' => [ 113 'inputOptions' => [
114 'name' => [ 114 'name' => [
115 'template' => '<div class="input-wr required">{input}</div>' 115 'template' => '<div class="input-wr required">{input}</div>'
116 ], 116 ],
117 - 'email' => [  
118 - 'template' => '<div class="input-wr required">{input}</div>' 117 + 'phone' => [
  118 + 'template' => '<div class="input-wr required phones_mask">{input}</div>'
119 ], 119 ],
120 'message' => [ 120 'message' => [
121 'type' => 'textarea', 121 'type' => 'textarea',
@@ -129,7 +129,7 @@ @@ -129,7 +129,7 @@
129 'sendEmail' => false, 129 'sendEmail' => false,
130 'ajax' => true, 130 'ajax' => true,
131 'formId' => 'contact-form', 131 'formId' => 'contact-form',
132 - 'scenario' => 'feedback', 132 + 'scenario' => 'callback',
133 'successCallback' => 'function (data) { 133 'successCallback' => 'function (data) {
134 document.getElementById("contact-form").reset(); 134 document.getElementById("contact-form").reset();
135 if (data.status == "success"){ 135 if (data.status == "success"){