From f9a8d772e35982bed1c39b286b3120b9b5f64c0c Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 13 May 2011 20:05:35 -0500 Subject: Customizable facet groups. The IPA.entity has been modified to support customizable facet groups. The default list of facet groups is defined in IPA.entity_header and can be overriden in the entity definition. Ticket #1219 --- install/ui/netgroup.js | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) (limited to 'install/ui/netgroup.js') diff --git a/install/ui/netgroup.js b/install/ui/netgroup.js index 197925a8..2136f926 100644 --- a/install/ui/netgroup.js +++ b/install/ui/netgroup.js @@ -23,20 +23,50 @@ /* REQUIRES: ipa.js, details.js, search.js, add.js, entity.js */ IPA.entity_factories.netgroup = function() { + return IPA.entity_builder(). entity('netgroup'). search_facet({ - columns:['cn','description']}). - details_facet({sections:[{ - name:'identity', - fields:['cn','description','nisdomainname']}]}). + columns:[ + 'cn', + 'description' + ] + }). + details_facet({ + sections:[{ + name:'identity', + fields:[ + 'cn', + 'description', + 'nisdomainname'] + }] + }). + association_facet({ + name: 'memberhost_host', + facet_group: 'member' + }). + association_facet({ + name: 'memberhost_hostgroup', + facet_group: 'member' + }). + association_facet({ + name: 'memberuser_user', + facet_group: 'member' + }). + association_facet({ + name: 'memberuser_group', + facet_group: 'member' + }). association_facet({ name: 'memberof_netgroup', associator: IPA.serial_associator }). standard_association_facets(). adder_dialog({ - fields:['cn', 'description'] + fields:[ + 'cn', + 'description' + ] }). build(); }; -- cgit