Commit 6f4bd61739e5acbf1b11253f5e6f4622a338bd4d

Authored by alex
1 parent 289fb56a

Get block to center

frontend/config/main.php
@@ -33,6 +33,7 @@ @@ -33,6 +33,7 @@
33 'class' => 'himiklab\yii2\recaptcha\ReCaptcha', 33 'class' => 'himiklab\yii2\recaptcha\ReCaptcha',
34 'siteKey' => '6LcmYmcUAAAAAASKWf3qnHXJCg9vGfJfDefY9TzW', 34 'siteKey' => '6LcmYmcUAAAAAASKWf3qnHXJCg9vGfJfDefY9TzW',
35 'secret' => '6LcmYmcUAAAAACVi_73RmSAIjJlw4BCgQpfUsrPs', 35 'secret' => '6LcmYmcUAAAAACVi_73RmSAIjJlw4BCgQpfUsrPs',
  36 + 'type' => 'image'
36 ], 37 ],
37 'user' => [ 38 'user' => [
38 'identityClass' => 'artbox\order\models\Customer', 39 'identityClass' => 'artbox\order\models\Customer',
frontend/views/site/contact.php
@@ -142,24 +142,25 @@ JS; @@ -142,24 +142,25 @@ JS;
142 <div class="col-md-8 col-md-offset-2"> 142 <div class="col-md-8 col-md-offset-2">
143 <?php $form = ActiveForm::begin( 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 <div class="row"> 151 <div class="row">
151 <div class="col-sm-12"> 152 <div class="col-sm-12">
152 <?= $form->field($contact, 'name') 153 <?= $form->field($contact, 'name')
153 - ->textInput(); ?> 154 + ->textInput(['autocomplete' => 'off']); ?>
154 </div> 155 </div>
155 156
156 <div class="col-sm-6"> 157 <div class="col-sm-6">
157 <?= $form->field($contact, 'email') 158 <?= $form->field($contact, 'email')
158 - ->textInput(); ?> 159 + ->textInput(['autocomplete' => 'off']); ?>
159 </div> 160 </div>
160 <div class="col-sm-6"> 161 <div class="col-sm-6">
161 <?= $form->field($contact, 'phone') 162 <?= $form->field($contact, 'phone')
162 - ->textInput(); ?> 163 + ->textInput(['autocomplete' => 'off']); ?>
163 </div> 164 </div>
164 <div class="col-sm-12"> 165 <div class="col-sm-12">
165 <?= $form->field($contact, 'message') 166 <?= $form->field($contact, 'message')