|
|
@ -254,7 +254,7 @@ class ActiveField extends \yii\widgets\ActiveField |
|
|
|
'labelOptions' => ['class' => 'checkbox-inline'], |
|
|
|
'labelOptions' => ['class' => 'checkbox-inline'], |
|
|
|
]; |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|
} elseif (!isset($options['item'])) { |
|
|
|
} elseif (!isset($options['item'])) { |
|
|
|
$options['item'] = function ($index, $label, $name, $checked, $value) { |
|
|
|
$options['item'] = function ($index, $label, $name, $checked, $value) { |
|
|
|
return '<div class="checkbox">' . Html::checkbox($name, $checked, ['label' => $label, 'value' => $value]) . '</div>'; |
|
|
|
return '<div class="checkbox">' . Html::checkbox($name, $checked, ['label' => $label, 'value' => $value]) . '</div>'; |
|
|
|
}; |
|
|
|
}; |
|
|
@ -280,7 +280,7 @@ class ActiveField extends \yii\widgets\ActiveField |
|
|
|
'labelOptions' => ['class' => 'radio-inline'], |
|
|
|
'labelOptions' => ['class' => 'radio-inline'], |
|
|
|
]; |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|
} elseif (!isset($options['item'])) { |
|
|
|
} elseif (!isset($options['item'])) { |
|
|
|
$options['item'] = function ($index, $label, $name, $checked, $value) { |
|
|
|
$options['item'] = function ($index, $label, $name, $checked, $value) { |
|
|
|
return '<div class="radio">' . Html::radio($name, $checked, ['label' => $label, 'value' => $value]) . '</div>'; |
|
|
|
return '<div class="radio">' . Html::radio($name, $checked, ['label' => $label, 'value' => $value]) . '</div>'; |
|
|
|
}; |
|
|
|
}; |
|
|
|