'.field-' . $text_input_id,
'input' => '#' . $text_input_id,
];
$parent_id_input_selectors = [
'container' => '.field-' . $parent_id_input_id,
'input' => '#' . $parent_id_input_id,
];
$form = ActiveForm::begin([
'id' => $formId . '-reply',
'action' => Url::to([
'artbox-comment/default/create',
'entity' => $comment_model->encryptedEntity,
]),
]);
?>
field(
$comment_model,
'parent_id',
[
'selectors' => $parent_id_input_selectors,
'inputOptions' => [
'id' => $parent_id_input_id,
'class' => 'form-control',
],
])
->hiddenInput()
->label(false);
echo $form->field($comment_model, 'text', [
'selectors' => $text_input_selectors,
'inputOptions' => [
'id' => $text_input_id,
'class' => 'form-control',
'cols' => 30,
'rows' => 10,
],
])
->textarea();
echo Html::submitButton(Yii::t('artbox-comment', 'Submit'));
echo Html::button(Yii::t('artbox-comment', 'Cancel'), [ 'data-action' => 'reply-cancel' ]);
?>