Your IP : 216.73.216.79


Current Path : /var/www/html/kwap/backend/views/alert/
Upload File :
Current File : /var/www/html/kwap/backend/views/alert/_form.php

<?php

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

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

<div class="well col col-sm-12">

    <?php //$form = ActiveForm::begin(); ?>
    <?php
    $form = ActiveForm::begin([
                'options' => ['class' => 'form-horizontal'],
                'fieldConfig' => [
                    'template' => "{label}\n<div class=\"col-md-5\">{input}</div>\n<div class=\"col-md-offset-2 col-md-5\">{error}</div>",
                ]
    ]);
    ?>

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

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

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

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

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

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

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

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

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

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

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

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

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

</div>