Entity select widget improvements

The IPA.entity_select_widget has been modified into a searchable and
editable drop down list. The base functionality has been extracted
into IPA.combobox_widget.

Ticket #1361
This commit is contained in:
Endi S. Dewata
2011-07-15 12:18:59 -05:00
committed by Adam Young
parent 95901bbdb5
commit 571274e978
18 changed files with 464 additions and 308 deletions

View File

@@ -96,7 +96,9 @@ IPA.entity_factories.user = function() {
['ou',
{
factory:IPA.entity_select_widget,
name: 'manager', entity: 'user', field_name: 'uid'
name: 'manager',
other_entity: 'user',
other_field: 'uid'
}
]
},
@@ -325,9 +327,7 @@ IPA.user_password_widget = function(spec) {
html: IPA.messages.objects.user.new_password
}).appendTo(dl);
var dd = $('<dd/>', {
'class': 'first'
}).appendTo(dl);
var dd = $('<dd/>').appendTo(dl);
dialog.password1 = $('<input/>', {
type: 'password'
@@ -337,9 +337,7 @@ IPA.user_password_widget = function(spec) {
html: IPA.messages.objects.user.repeat_password
}).appendTo(dl);
dd = $('<dd/>', {
'class': 'first'
}).appendTo(dl);
dd = $('<dd/>').appendTo(dl);
dialog.password2 = $('<input/>', {
type: 'password'