<?php

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

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

<div class="productos-form">

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

</div>
