Commit 365b5721357491d0bba5d8f26cccab8182a8b3cd
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 | 92 | 'activeRecord' => "artbox\core\models\Feedback", |
93 | 93 | 'attributes' => [ |
94 | 94 | 'name', |
95 | - 'email', | |
95 | + 'phone', | |
96 | 96 | 'message', |
97 | 97 | ], |
98 | 98 | 'rules' => [ |
... | ... | @@ -107,15 +107,15 @@ |
107 | 107 | 'labels' => [ |
108 | 108 | 'name' => \Yii::t('app','Name'), |
109 | 109 | 'message' => \Yii::t('app','Yours question'), |
110 | - 'phone' => \Yii::t('app','Email'), | |
110 | + 'phone' => \Yii::t('app','Phone'), | |
111 | 111 | ], |
112 | 112 | |
113 | 113 | 'inputOptions' => [ |
114 | 114 | 'name' => [ |
115 | 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 | 120 | 'message' => [ |
121 | 121 | 'type' => 'textarea', |
... | ... | @@ -129,7 +129,7 @@ |
129 | 129 | 'sendEmail' => false, |
130 | 130 | 'ajax' => true, |
131 | 131 | 'formId' => 'contact-form', |
132 | - 'scenario' => 'feedback', | |
132 | + 'scenario' => 'callback', | |
133 | 133 | 'successCallback' => 'function (data) { |
134 | 134 | document.getElementById("contact-form").reset(); |
135 | 135 | if (data.status == "success"){ | ... | ... |