1 | <?php |
||
2 | use yii\bootstrap\ActiveForm; |
||
3 | use yii\bootstrap\Html; |
||
4 | use yii\captcha\Captcha; |
||
5 | |||
6 | /* @var $this yii\web\View */ |
||
7 | /* @var $form yii\bootstrap\ActiveForm */ |
||
8 | /* @var $model \frontend\models\ContactForm */ |
||
9 | |||
10 | $this->title = Yii::t('app', 'Contact Us'); |
||
11 | $this->params['breadcrumbs'][] = $this->title; |
||
12 | ?> |
||
13 | <div class="site-contact"> |
||
14 | <h1><?= Html::encode($this->title) ?></h1> |
||
15 | </div> |
||
16 | |||
17 | <p> |
||
18 | If you have business inquiries or other questions, please fill out the following form to contact us. Thank you. |
||
19 | </p> |
||
20 | |||
21 | <div class="row"> |
||
22 | <div class="col-lg-6"> |
||
23 | <?php $form = ActiveForm::begin(['id' => 'contact-form']); ?> |
||
24 | |||
25 | <?= $form->field($model, 'name')->textInput(['autofocus' => true]) ?> |
||
26 | |||
27 | <?= $form->field($model, 'email') ?> |
||
28 | |||
29 | <?= $form->field($model, 'subject') ?> |
||
30 | |||
31 | <?= $form->field($model, 'body')->textarea(['rows' => 6]) ?> |
||
32 | |||
33 | <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [ |
||
0 ignored issues
–
show
|
|||
34 | 'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>', |
||
35 | ]) ?> |
||
36 | |||
37 | <div class="form-group"> |
||
38 | <?= Html::submitButton('Submit', ['class' => 'btn btn-primary', 'name' => 'contact-button']) ?> |
||
39 | </div> |
||
40 | |||
41 | <?php ActiveForm::end(); ?> |
||
42 | </div> |
||
43 | </div> |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.