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:
Endi S. Dewata
2010-12-06 16:30:10 -06:00
committed by Adam Young
parent ca436d9ec3
commit 6350686710
17 changed files with 74 additions and 137 deletions

View File

@@ -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;
}());