Код: Выделить всё
<?= $form->field($model, 'input_places')->widget(MultipleInput::className(),[
'max' => 7,
'columns' => [
[
'name' => 'type',
'type' => 'dropDownList',
'title' => 'Places',
'defaultValue' => 1,
'items' => Places::mapPlaces()
],
[
'name' => 'distance',
'title' => 'Расстояние',
// 'enableError' => true,
'options' => [
'class' => 'input-priority'
]
],
[
'name' => 'meisure',
'type' => 'dropDownList',
'title' => Places::MEISURE_M,
'defaultValue' => 1,
'items' => Places::mapMeisure()
],
]
]);
?>
Код: Выделить всё
"input_places": [
{
"type": "1",
"distance": "34",
"meisure": "1"
}
],