field(( !empty( $model->rating ) ? $model->rating : $rating ), 'value')
                      ->label(false)
                      ->widget(StarRating::className(), [
                          'pluginOptions' => [
                              'size'        => 'xxs',
                              'step'        => 1,
                              'value'       => 2,
                              'showCaption' => false,
                              'min'         => 0,
                              'max'         => 10,
                              'stars'       => 10,
                          ],
                      ]);
        }
        if($model->scenario == $model::SCENARIO_GUEST) {
            echo $form->field($model, 'user_name', [
                'options'      => [
                    'class' => 'input-blocks-comm fix_marg_',
                ],
                'inputOptions' => [
                    'class' => 'custom-input-4',
                ],
            ])
                      ->textInput();
            echo $form->field($model, 'user_email', [
                'options'      => [
                    'class' => 'input-blocks-comm',
                ],
                'inputOptions' => [
                    'class' => 'custom-input-4',
                ],
            ])
                      ->textInput()
                      ->hint('Ваш email не будет доступен к просмотру.');
        }
    ?>
    
    field($model, 'text', [
            'options'      => [
                'class' => 'input-blocks-comm area-comm',
            ],
            'inputOptions' => [
                'class' => 'custom-area-4',
            ],
        ])
                  ->textarea();
    ?>
    
        = Html::submitButton('Добавить мнение') ?>
    
    end();
    ?>