echo $form->field($model, 'text')->textInput([
'maxlength' => true,
'class' => 'form-control js-word-count-input',
'placeholder' => 'Вопрос',
// 'id' => 'js-news-content'
])->label('Вопрос');
?>
$answers = $model->getAnswers();
foreach($answers as $item){
?>
}
?>
//($model->show == 'Y')?true:false,
echo $form->field($model, 'show')->checkbox([
'class' => 'form-check-input',
'label' => 'Включить голосование',
'uncheck' => 'N',
'value' => 'Y',
'checked' => ($model->show == 'Y')?true:false
]);
echo $form->field($model, 'active')->checkbox([
'class' => 'form-check-input',
'label' => 'Показывать',
'uncheck' => 'N',
'value' => 'Y',
'checked' => ($model->active == 'Y')?true:false
]);
?>
echo Html::submitButton('Сохранить', ['class' => 'btn btn-success']);
?>