From 51cd0c916b7f97a249abe17a2987b5ec849bf723 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 28 Jul 2011 17:23:41 -0500 Subject: Added association facets for HBAC and sudo. The HBAC service, HBAC service group, sudo command and sudo command group have been modified to show the associations as facets. Ticket #1536 --- install/ui/hbac.js | 58 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 47 insertions(+), 11 deletions(-) (limited to 'install/ui/hbac.js') diff --git a/install/ui/hbac.js b/install/ui/hbac.js index 2cdb710ab..4e25123e4 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -63,6 +63,30 @@ IPA.entity_factories.hbacsvc = function() { name: 'general', label: IPA.messages.details.general, fields:[ 'cn', 'description']}]}). + association_facet({ + name: 'memberof_hbacsvcgroup', + associator: IPA.serial_associator, + columns:[ + { + name: 'cn', + primary_key: true, + link: true + }, + { name: 'description' } + ], + adder_columns: [ + { + name: 'cn', + primary_key: true, + width: '100px' + }, + { + name: 'description', + width: '100px' + } + ] + }). + standard_association_facets(). adder_dialog({ fields:['cn','description'] }). @@ -80,18 +104,30 @@ IPA.entity_factories.hbacsvcgroup = function() { name: 'general', label: IPA.messages.details.general, fields:['cn','description'] - }, - { - name: 'services', - label: IPA.messages.objects.hbacsvcgroup.services, - fields:[{ - factory: IPA.hbacsvcgroup_member_hbacsvc_table_widget, - name: 'member_hbacsvc', - label: IPA.messages.objects.hbacsvcgroup.services, - other_entity: 'hbacsvc', - save_values: false - }] }]}). + association_facet({ + name: 'member_hbacsvc', + columns:[ + { + name: 'cn', + primary_key: true, + link: true + }, + { name: 'description' } + ], + adder_columns: [ + { + name: 'cn', + primary_key: true, + width: '100px' + }, + { + name: 'description', + width: '100px' + } + ] + }). + standard_association_facets(). adder_dialog({ fields:['cn', 'description'] }). -- cgit