<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'time_rec')->checkboxList(\yii\helpers\ArrayHelper::map(\app\models\Worktime::find()->all(),'id','time_work'))->label('') ?>
<div class="form-group">
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>