field($model, 'manager_id')->widget(Select2::className(), [ 'data' => Manager::find()->select(['fio', 'manager.id']) ->joinWith('userCard')->indexBy('manager.id')->column(), 'options' => ['placeholder' => '...','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => true ], ]) ?> field($model, 'user_card_id')->widget(Select2::className(), [ 'data' => UserCard::find()->select(['fio', 'user_card.id']) ->joinWith('manager')->where(['manager.user_card_id' => null])->indexBy('user_card.id')->column(), 'options' => ['placeholder' => '...','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => true, 'multiple' => true, ], ]) ?>
'btn btn-success']) ?>