Код: Выделить всё
echo $form->field($model_list, 'id_nomenclature')->widget(MultipleInput::className(), [
'id' => 'multiple-input-catalog-nomenclature',
'min' => 1, // should be at least 2 rows
'allowEmptyList' => true,
'enableGuessTitle' => true,
'columns' => [
[
'name' => 'id_nomenclature',
'title' => 'Номенклатура',
],
[
'name' => 'amount',
'title' => 'Кол-во',
'options' => [
'class' => 'col-lg-2'
]
],
[
'name' => 'price',
'title' => 'Цена',
'options' => [
'class' => 'col-lg-2'
]
],
[
'name' => 'sum',
'title' => 'Сумма',
'options' => [
'class' => 'col-lg-2'
]
],
]
])
->label(false);