mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Dialog i18n
The ipa_add_dialog has been fixed to initialize the fields which will get the labels from metadata. Hard-coded labels have been removed from field declarations. The superior() method has been removed because it doesn't work with multi-level inheritance. Superclass method for now is called using <class name>_<method> (e.g. widget_init).
This commit is contained in:
committed by
Adam Young
parent
ca436d9ec3
commit
6350686710
@@ -47,19 +47,17 @@ IPA.add_entity( function() {
|
||||
|
||||
var dialog = ipa_add_dialog({
|
||||
name: 'add',
|
||||
title: 'Add Hostgroup',
|
||||
entity_name:'hostgroup'
|
||||
title: 'Add Hostgroup'
|
||||
});
|
||||
|
||||
that.add_dialog(dialog);
|
||||
|
||||
dialog.add_field(ipa_text_widget({name: 'cn', undo: false}));
|
||||
dialog.add_field(ipa_text_widget({name: 'description', undo: false}));
|
||||
dialog.init();
|
||||
dialog.add_field(ipa_text_widget({ name: 'cn',
|
||||
entity_name:'hostgroup'}));
|
||||
dialog.add_field(ipa_text_widget({ name: 'description',
|
||||
entity_name:'hostgroup' }));
|
||||
|
||||
that.create_association_facets();
|
||||
that.entity_init();
|
||||
}
|
||||
};
|
||||
return that;
|
||||
}());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user