_form.php 1.17 KB
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\models\Host;

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

<div class="host-form">

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

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

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

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

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

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

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

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

    <?= $form->field($model, 'tix_status', ['options' => ['class' => 'form-group']])->dropDownList(Host::getTIXStatus()) ?>

    <?= $form->field($model, 'wis_status', ['options' => ['class' => 'form-group']])->dropDownList(Host::getWisStatus()) ?>

    <?= $form->field($model, 'status', ['options' => ['class' => 'form-group']])->dropDownList(Host::getStatus()) ?>

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

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

</div>