Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

38 lines
1.3KB

  1. <?php
  2. use yii\helpers\Html;
  3. use yii\bootstrap\ActiveForm;
  4. use yii\captcha\Captcha;
  5. /* @var $this yii\web\View */
  6. /* @var $form yii\bootstrap\ActiveForm */
  7. /* @var $model \frontend\models\ContactForm */
  8. $this->title = 'Contact';
  9. $this->params['breadcrumbs'][] = $this->title;
  10. ?>
  11. <div class="site-contact">
  12. <h1><?= Html::encode($this->title) ?></h1>
  13. <p>
  14. If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
  15. </p>
  16. <div class="row">
  17. <div class="col-lg-5">
  18. <?php $form = ActiveForm::begin(['id' => 'contact-form']); ?>
  19. <?= $form->field($model, 'name') ?>
  20. <?= $form->field($model, 'email') ?>
  21. <?= $form->field($model, 'subject') ?>
  22. <?= $form->field($model, 'body')->textArea(['rows' => 6]) ?>
  23. <?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
  24. 'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
  25. ]) ?>
  26. <div class="form-group">
  27. <?= Html::submitButton('Submit', ['class' => 'btn btn-primary', 'name' => 'contact-button']) ?>
  28. </div>
  29. <?php ActiveForm::end(); ?>
  30. </div>
  31. </div>
  32. </div>