Blame view

frontend/views/comments/_form.php 2.07 KB
4d7ee438   Alexey Boroda   Changes:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  <?php
      use common\modules\comment\models\CommentModel;
      use common\modules\comment\models\RatingModel;
      use yii\base\Model;
      use yii\helpers\Html;
      use yii\helpers\Url;
      use yii\web\View;
      use yii\widgets\ActiveForm;
      
      /**
       * @var CommentModel     $comment_model
       * @var array            $form_params
       * @var Model            $model
       * @var string           $formId
       * @var View             $this
       * @var RatingModel|NULL $rating_model
       */
      $form = ActiveForm::begin([
          'id'     => $formId,
          'action' => Url::to([
              'artbox-comment/default/create',
              'entity' => $comment_model->encryptedEntity,
          ]),
      ]);
  ?>
80de1b98   Eugeny Galkovskiy   123
26
  <div style="clear:both;"></div>
71301d9c   Eugeny Galkovskiy   123
27
28
29
30
      <div class="otz_buttons" style="">
          <a href="#" class="btn_otz more1">Больше отзывов</a>
          <a href="#" class="btn_otz write">Написать отзыв</a>
      </div>
5f4d552f   Eugeny Galkovskiy   123
31
32
33
  <div class="add_comment">
      <div class="title">Мы обязательно рассмотрим все отзывы!</div>
      <div class="close_comm"></div>
4d7ee438   Alexey Boroda   Changes:
34
35
      <div class="form-comm-wr">
          <?php
e388a1a8   Eugeny Galkovskiy   123
36
  
3d164df8   Eugeny Galkovskiy   123
37
              echo $form->field($comment_model, 'text', [ 'options' => [ 'class' => 'form-group input_bl area_bl' ] ])
391c98b4   Alexey Boroda   -Added social but...
38
39
              ->textarea([
                  'placeholder' => 'Комментарий',
106471ae   Alexey Boroda   -Comments finished
40
41
                  'rows' => 8,
                  'spellcheck' => false,
391c98b4   Alexey Boroda   -Added social but...
42
              ]);
e388a1a8   Eugeny Galkovskiy   123
43
  
4d7ee438   Alexey Boroda   Changes:
44
              echo $form->field($comment_model, 'username', [ 'options' => [ 'class' => 'form-group input_bl' ] ])
391c98b4   Alexey Boroda   -Added social but...
45
46
47
48
                            ->textInput([
                                'placeholder' => 'Имя',
                            ]);
              
4d7ee438   Alexey Boroda   Changes:
49
              echo $form->field($comment_model, 'email', [ 'options' => [ 'class' => 'form-group input_bl' ] ])
391c98b4   Alexey Boroda   -Added social but...
50
51
52
                            ->textInput([
                                'placeholder' => 'e-mail',
                            ]);
e388a1a8   Eugeny Galkovskiy   123
53
  
4d7ee438   Alexey Boroda   Changes:
54
55
56
              echo Html::tag('div', Html::submitButton(Yii::t('artbox-comment', 'Submit')), [ 'class' => 'input_bl submit_btn' ]);
          ?>
      </div>
5f4d552f   Eugeny Galkovskiy   123
57
      </div>
4d7ee438   Alexey Boroda   Changes:
58
59
60
  <?php
      ActiveForm::end();
  ?>