<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/** @var yii\web\View $this */
/** @var manager\models\Comments $model */
/** @var yii\widgets\ActiveForm $form */
?>

<div class="card card-primary">

    <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>
	<div class="card-body">
    <?= $form->field($model, 'id')->textInput(['readonly'=>true]) ?>

    <?= $form->field($model, 'news_id')->textInput(['readonly'=>true]) ?>

    <?= $form->field($model, 'visible')->dropDownList([ 'Y' => 'Y', 'N' => 'N', ], ['prompt' => '']) ?>

    <?= $form->field($model, 'message')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'ip_address')->textInput(['maxlength' => true, 'readonly'=>true]) ?>

    <?= $form->field($model, 'user_agent')->textarea(['rows' => 6, 'readonly'=>true]) ?>

    <?= $form->field($model, 'created_by_user_id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'created_at')->textInput() ?>

    <div class="form-group">
        <?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
    </div>
	</div>
    <?php ActiveForm::end(); ?>

</div>
