Replace Chosen jQuery plugin by custom UI component
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user