From 10f3c0825bfdffa6035e78066001eb3bdc759143 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Sat, 4 Dec 2010 00:29:05 -0500 Subject: entity i18n Updated the user,group,host, hostgroup, netgroup, service, and all policy entities to use the newer framework functions, in order to replaced the old array style definitions which did not support i18n. update a few of the newer framerwork functions to get the lables from the meta data. Fixed the unit tests which were expecting a details facet for users, no longer automatically created --- install/static/group.js | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) (limited to 'install/static/group.js') diff --git a/install/static/group.js b/install/static/group.js index b4446343..8c2087f6 100644 --- a/install/static/group.js +++ b/install/static/group.js @@ -89,10 +89,14 @@ function ipa_group_add_dialog(spec) { that.add_dialog_init(); - that.add_field(ipa_text_widget({name:'cn', label:'Name', undo: false})); - that.add_field(ipa_text_widget({name:'description', label:'Description', undo: false})); - that.add_field(ipa_checkbox_widget({name:'posix', label:'Is this a POSIX group?', undo: false})); - that.add_field(ipa_text_widget({name:'gidnumber', label:'GID', 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})); }; return that; @@ -105,11 +109,9 @@ function ipa_group_search_facet(spec) { var that = ipa_search_facet(spec); that.init = function() { - - that.create_column({name:'cn', label:'Name'}); - that.create_column({name:'gidnumber', label:'GID'}); - that.create_column({name:'description', label:'Description'}); - + that.create_column({name:'cn'}); + that.create_column({name:'gidnumber'}); + that.create_column({name:'description'}); that.search_facet_init(); }; @@ -130,20 +132,9 @@ function ipa_group_details_facet(spec) { }); that.add_section(section); - section.create_field({ - name: 'cn', - label: 'Group Name' - }); - - section.create_field({ - name: 'description', - label: 'Description' - }); - - section.create_field({ - name: 'gidnumber', - label: 'Group ID' - }); + section.create_field({name: 'cn' }); + section.create_field({name: 'description'}); + section.create_field({name: 'gidnumber' }); that.details_facet_init(); }; -- cgit