model_id )) { $project = Project::findOne($model->model_id); } if(!empty( $project ) && $project->user_id != \Yii::$app->user->id) { ?>
Задать вопрос
user->id )) { ?>
user->identity->name; ?>
['data' => ['pjax' => true]]]); if(!$model->isNewRecord) { echo $form->field($model, 'comment_id') ->hiddenInput() ->label(false) ->error(false); } if(!empty( $model->comment_pid )) { echo $form->field($model, 'comment_pid') ->hiddenInput() ->label(false) ->error(false); } if($model->scenario == $model::SCENARIO_GUEST) { echo $form->field($model, 'user_name', [ 'options' => [ 'class' => 'input-blocks-comm', ], 'inputOptions' => [ 'class' => 'custom-input-4', ], ]) ->textInput(); echo $form->field($model, 'user_email', [ 'options' => [ 'class' => 'input-blocks-comm', ], 'inputOptions' => [ 'class' => 'custom-input-4', ], ]) ->textInput(); } ?>
field($model, 'text', [ 'options' => [ 'class' => 'input-blocks-comm area-comm tender_com_fix_', ], 'inputOptions' => [ 'class' => 'custom-area-4', ], ]) ->label($model->isNewRecord ? 'Вопрос' : 'Ответ', [ 'class' => 'artbox_comment_answer_label' ]) ->textarea(); ?>
isNewRecord) { echo Html::submitButton('Задать вопрос'); } else { echo Html::submitButton('Обновить вопрос', [ 'class' => 'artbox_comment_update_answer_submit' ]); } ?>
end(); ?>