summaryrefslogtreecommitdiffstats
path: root/install/static/group.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-12-04 00:29:05 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2010-12-06 12:52:47 -0500
commit10f3c0825bfdffa6035e78066001eb3bdc759143 (patch)
treee1a2ddef0846e12275cd661752217e461a204b7c /install/static/group.js
parent37f48c0019c64f20bfc24b021442b643eaf86aab (diff)
downloadfreeipa-10f3c0825bfdffa6035e78066001eb3bdc759143.tar.gz
freeipa-10f3c0825bfdffa6035e78066001eb3bdc759143.tar.xz
freeipa-10f3c0825bfdffa6035e78066001eb3bdc759143.zip
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
Diffstat (limited to 'install/static/group.js')
-rw-r--r--install/static/group.js37
1 files changed, 14 insertions, 23 deletions
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();
};