From 3528b4eca3cf2519a6af5a43f6b321cbd8eea138 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Mon, 18 Apr 2011 10:59:50 -0500 Subject: Moved adder dialog box into entity. The adder dialog box definition has been moved from search facet into entity to make it accessible from other facets. --- install/ui/hbac.js | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'install/ui/hbac.js') diff --git a/install/ui/hbac.js b/install/ui/hbac.js index a0a713405..f0a9e214f 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -27,8 +27,14 @@ IPA.entity_factories.hbacrule = function () { entity('hbacrule'). search_facet({ columns:['cn','usercategory','hostcategory','ipaenabledflag', - 'servicecategory','sourcehostcategory'], - add_fields:[ + 'servicecategory','sourcehostcategory'] + }). + facet({ + factory: IPA.hbacrule_details_facet, + 'name': 'details' + }). + adder_dialog({ + fields:[ 'cn', { factory: IPA.radio_widget, @@ -41,10 +47,7 @@ IPA.entity_factories.hbacrule = function () { 'label': IPA.messages.objects.hbacrule.deny }], 'undo': false - }]}). - facet({ - factory: IPA.hbacrule_details_facet, - 'name': 'details' + }] }). build(); }; @@ -53,12 +56,14 @@ IPA.entity_factories.hbacsvc = function () { return IPA.entity_builder(). entity('hbacsvc'). search_facet({ - columns:['cn','description'], - add_fields:['cn','description']}). + columns:['cn','description']}). details_facet({sections:[{ name: 'general', label: IPA.messages.details.general, fields:[ 'cn', 'description']}]}). + adder_dialog({ + fields:['cn','description'] + }). build(); }; @@ -67,8 +72,7 @@ IPA.entity_factories.hbacsvcgroup = function () { return IPA.entity_builder(). entity('hbacsvcgroup'). search_facet({ - columns:['cn', 'description'], - add_fields:['cn', 'description']}). + columns:['cn', 'description']}). details_facet({sections:[ { name: 'general', @@ -86,6 +90,9 @@ IPA.entity_factories.hbacsvcgroup = function () { save_values: false }] }]}). + adder_dialog({ + fields:['cn', 'description'] + }). build(); }; -- cgit