diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-05-13 20:05:35 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-05-16 13:18:51 -0400 |
commit | f9a8d772e35982bed1c39b286b3120b9b5f64c0c (patch) | |
tree | 690ed76cd4d8185a6616e0d80ced9df67ef86a88 /install/ui/netgroup.js | |
parent | 6c66d376559b9265e98788887fbf0f7f5ea3ea6b (diff) | |
download | freeipa-f9a8d772e35982bed1c39b286b3120b9b5f64c0c.tar.gz freeipa-f9a8d772e35982bed1c39b286b3120b9b5f64c0c.tar.xz freeipa-f9a8d772e35982bed1c39b286b3120b9b5f64c0c.zip |
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
Diffstat (limited to 'install/ui/netgroup.js')
-rw-r--r-- | install/ui/netgroup.js | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/install/ui/netgroup.js b/install/ui/netgroup.js index 197925a8d..2136f926c 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(); }; |