<?=$form->field(
$model,
'unit_id',
[
'inputOptions' => [
'class' => 'required',
],
'template' => '{input}',
]
)->dropDownList($list_unit,['prompt'=>'请选择计数单位'])?>
<?=$form->field(
$model,
'unit_id',
[
'inputOptions' => [
'class' => 'required',
],
'template' => '{input}',
]
)->dropDownList($list_unit,['prompt'=>'请选择计数单位'])?>