28 lines
733 B
PHP
28 lines
733 B
PHP
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\ActiveForm;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model common\models\InventoryItem */
|
|
/* @var $form yii\widgets\ActiveForm */
|
|
?>
|
|
|
|
<div class="inventory-item-form">
|
|
|
|
<?php $form = ActiveForm::begin(); ?>
|
|
|
|
<?= $form->field($model, 'name')->textInput(['autocomplete' => 'off']) ?>
|
|
<?= $form->field($model, 'id_product')->hiddenInput()->label(false) ?>
|
|
<?= $form->field($model, 'type')->hiddenInput()->label(false) ?>
|
|
<?= $form->field($model, 'count')->textInput() ?>
|
|
|
|
|
|
<div class="form-group">
|
|
<?= Html::submitButton( Yii::t('common/inventory-item', 'Mentés') , ['class' => 'btn btn-success' ]) ?>
|
|
</div>
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
|
|
</div>
|