Commit 6f4bd61739e5acbf1b11253f5e6f4622a338bd4d
1 parent
289fb56a
Get block to center
Showing
2 changed files
with
8 additions
and
6 deletions
Show diff stats
frontend/config/main.php
... | ... | @@ -33,6 +33,7 @@ |
33 | 33 | 'class' => 'himiklab\yii2\recaptcha\ReCaptcha', |
34 | 34 | 'siteKey' => '6LcmYmcUAAAAAASKWf3qnHXJCg9vGfJfDefY9TzW', |
35 | 35 | 'secret' => '6LcmYmcUAAAAACVi_73RmSAIjJlw4BCgQpfUsrPs', |
36 | + 'type' => 'image' | |
36 | 37 | ], |
37 | 38 | 'user' => [ |
38 | 39 | 'identityClass' => 'artbox\order\models\Customer', | ... | ... |
frontend/views/site/contact.php
... | ... | @@ -142,24 +142,25 @@ JS; |
142 | 142 | <div class="col-md-8 col-md-offset-2"> |
143 | 143 | <?php $form = ActiveForm::begin( |
144 | 144 | [ |
145 | - 'id' => 'contact-form', | |
146 | - 'method' => 'POST', | |
147 | - 'action' => '/site/feedback', | |
145 | + 'id' => 'contact-form', | |
146 | + 'method' => 'POST', | |
147 | + 'action' => '/site/feedback', | |
148 | + | |
148 | 149 | ] |
149 | 150 | ); ?> |
150 | 151 | <div class="row"> |
151 | 152 | <div class="col-sm-12"> |
152 | 153 | <?= $form->field($contact, 'name') |
153 | - ->textInput(); ?> | |
154 | + ->textInput(['autocomplete' => 'off']); ?> | |
154 | 155 | </div> |
155 | 156 | |
156 | 157 | <div class="col-sm-6"> |
157 | 158 | <?= $form->field($contact, 'email') |
158 | - ->textInput(); ?> | |
159 | + ->textInput(['autocomplete' => 'off']); ?> | |
159 | 160 | </div> |
160 | 161 | <div class="col-sm-6"> |
161 | 162 | <?= $form->field($contact, 'phone') |
162 | - ->textInput(); ?> | |
163 | + ->textInput(['autocomplete' => 'off']); ?> | |
163 | 164 | </div> |
164 | 165 | <div class="col-sm-12"> |
165 | 166 | <?= $form->field($contact, 'message') | ... | ... |