From 6350686710c49b632ea7b1085e4db6755056d263 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 6 Dec 2010 16:30:10 -0600 Subject: 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 _ (e.g. widget_init). --- install/static/group.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'install/static/group.js') diff --git a/install/static/group.js b/install/static/group.js index f3dba7b0..21a31257 100644 --- a/install/static/group.js +++ b/install/static/group.js @@ -87,16 +87,13 @@ function ipa_group_add_dialog(spec) { that.init = function() { - that.add_dialog_init(); + that.add_field(ipa_text_widget({name:'cn', undo: false})); + that.add_field(ipa_text_widget({name:'description', undo: false})); + // TODO: Replace with i18n label + that.add_field(ipa_checkbox_widget({name:'posix', label:'Is this a POSIX group?', undo: false})); + that.add_field(ipa_text_widget({name:'gidnumber', undo: false})); - that.add_field(ipa_text_widget({name:'cn', entity_name:'group', - undo: false})); - that.add_field(ipa_text_widget({name:'description', - entity_name:'group', undo: false})); - that.add_field(ipa_checkbox_widget({name:'posix', entity_name:'group', - undo: false})); - that.add_field(ipa_text_widget({name:'gidnumber', entity_name:'group', - undo: false})); + that.add_dialog_init(); }; return that; -- cgit