12345678910111213141516171819202122232425262728293031323334353637 |
- <?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="comments-form">
- <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>
- <?= $form->field($model, 'id')->textInput() ?>
- <?= $form->field($model, 'news_id')->textInput() ?>
- <?= $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]) ?>
- <?= $form->field($model, 'user_agent')->textarea(['rows' => 6]) ?>
- <?= $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>
- <?php ActiveForm::end(); ?>
- </div>
|