_form.php 899 Bytes
<?php

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

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

<div class="details-crosses-form">

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

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

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

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

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

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

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Добавить' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

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

</div>