Replace Chosen jQuery plugin by custom UI component

This commit is contained in:
Frederic Guillot
2016-12-11 15:46:54 -05:00
parent a2b44371e0
commit ffb3926178
21 changed files with 385 additions and 1795 deletions

View File

@@ -9,7 +9,11 @@
<?= $this->form->hidden('group_id', $values) ?>
<?= $this->form->label(t('User'), 'user_id') ?>
<?= $this->form->select('user_id', $users, $values, $errors, array('required'), 'chosen-select') ?>
<?= $this->app->component('select-dropdown-autocomplete', array(
'name' => 'user_id',
'items' => $users,
'defaultValue' => isset($values['user_id']) ? $values['user_id'] : null,
)) ?>
<div class="form-actions">
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>