field($model, 'project_id')->widget(Select2::className(), [ 'data' => Project::find()->select(['name', 'id'])->indexBy('id')->column(), 'options' => ['placeholder' => '...','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => true ], ] ) ?> field($model, 'user_id')->widget(Select2::className(), [ 'data' => User::find()->select(['username', 'id'])->indexBy('id')->column(), 'options' => ['placeholder' => '...','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => true, 'multiple' => false, ], ] ) ?>
'btn btn-success']) ?>