get rid of kartik select2

This commit is contained in:
resurtm
2016-12-21 13:34:44 +06:00
parent 2686a54aa3
commit f66689ef49
5 changed files with 266 additions and 59 deletions

View File

@ -9,16 +9,16 @@
* the LICENSE file that was distributed with this source code.
*/
use dosamigos\selectize\SelectizeDropDownList;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/**
* @var yii\web\View
* @var $model \Da\User\Model\Permission
* @var $this yii\web\View
* @var $model Da\User\Model\Permission
* @var $unassignedItems string[]
*/
use kartik\select2\Select2;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
?>
<?php $form = ActiveForm::begin([
@ -32,8 +32,8 @@ use yii\helpers\Html;
<?= $form->field($model, 'rule') ?>
<?= $form->field($model, 'children')->widget(Select2::className(), [
'data' => $unassignedItems,
<?= $form->field($model, 'children')->widget(SelectizeDropDownList::class, [
'items' => $unassignedItems,
'options' => [
'id' => 'children',
'multiple' => true,