<?php

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

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

<div class="feedback-form">

    <?php $form = ActiveForm::begin(); ?>

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

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

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

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

    <?= $form->field($model, 'status')->dropDownList([1=>'Open',2=>'Closed']) ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
