From c0eb2b60c85dd686c96693e1a512986ba5b4306e Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 1 Dec 2010 14:51:39 -0600 Subject: Multicolumn enrollment dialog The enrollment dialog has been modified to use scrollable tables that supports multiple columns to display the search results and selected entries. The columns are specified by calling create_adder_column() on the association facet. By default the tables will use only one column which is to display the primary keys. The following enrollment dialogs have been modified to use multiple columns: - Group's member_user - Service's managedby_host - HBAC Service Group's member_hbacsvc - SUDO Command Group's member_sudocmd The ipa_association_table_widget's add() and remove() have been moved into ipa_association_facet so they can be customized by facet's subclass. The ipa_table's add_row() has been renamed to add_record(). Some old code has been removed from ipa_facet_create_action_panel(). The code was used to generate association links from a single facet. It's no longer needed because now each association has its own facet. The test data has been updated. The IPA.nested_tabs() has been fixed to return the entity itself if IPA.tab_set is not defined. This is needed to pass unit test. --- install/static/entity.js | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'install/static/entity.js') diff --git a/install/static/entity.js b/install/static/entity.js index 9b62ce37..6e2b501b 100644 --- a/install/static/entity.js +++ b/install/static/entity.js @@ -377,6 +377,11 @@ IPA.nested_tabs = function(entity_name){ var siblings = []; + if (!IPA.tab_set) { + siblings.push(entity_name); + return siblings; + } + for (var top_tab_index = 0; top_tab_index < IPA.tab_set.length; top_tab_index += 1){ @@ -479,20 +484,7 @@ function ipa_facet_create_action_panel(container) { for (var i=1; i', { @@ -507,7 +499,7 @@ function ipa_facet_create_action_panel(container) { return false; } }).appendTo(ul); - } + } } /*When we land on the search page, disable all facets that require a pkey until one is selected*/ -- cgit