$formId, 'action' => Url::to( [ 'artbox-comment/default/create', 'entity' => $comment_model->encryptedEntity, ] ), ] ); ?>

Оставить комментарий

field($rating_model, 'value', [ 'enableClientValidation' => false ]) ->hiddenInput() ->label(false); echo Html::tag( 'div', '', [ 'class' => 'rateit', 'data-rateit-backingfld' => '#' . Html::getInputId($rating_model, 'value'), ] ); ?>
user->isGuest) { echo $form->field($comment_model, 'username', [ 'options' => [ 'class' => 'form-group input_bl' ] ]) ->textInput()->label('Ваше имя'); echo $form->field($comment_model, 'email', [ 'options' => [ 'class' => 'form-group input_bl' ] ]) ->textInput([ 'options' => [ 'class' => 'form-control' ] ])->label('Email'); } echo $form->field($comment_model, 'text', [ 'options' => [ 'class' => 'form-group input_bl area_bl' ] ]) ->textarea()->label('Текст сообщения'); echo Html::tag( 'div', Html::submitButton( Yii::t('app', ' Отправить') ), [ 'class' => 'input_bl submit_btn' ] ); ?>