From fef343ae8f501aa67d4c746d9c7103d797fd6be2 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Wed, 18 Jan 2012 17:58:55 -0600 Subject: Show disabled entries in gray. The users, HBAC/sudo rules, HBAC test, and SELinux list pages have been modified to show disabled entries in gray. Icons will be added separately. Ticket #1996 --- install/ui/facet.js | 25 +++++- install/ui/hbac.js | 5 +- install/ui/hbactest.js | 14 +++- install/ui/ipa.css | 4 + install/ui/selinux.js | 5 +- install/ui/sudo.js | 5 +- install/ui/test/data/hbacrule_get_records.json | 15 ++++ .../ui/test/data/selinuxusermap_find_pkeys.json | 8 +- .../ui/test/data/selinuxusermap_get_records.json | 30 +++++++ install/ui/test/data/sudorule_find_pkeys.json | 8 +- install/ui/test/data/sudorule_get_records.json | 98 +++++++++++++++++++++- install/ui/test/data/user_get_records.json | 6 +- install/ui/user.js | 4 +- install/ui/widget.js | 28 ++++++- 14 files changed, 239 insertions(+), 16 deletions(-) (limited to 'install/ui') diff --git a/install/ui/facet.js b/install/ui/facet.js index d6502494..150c3e8f 100644 --- a/install/ui/facet.js +++ b/install/ui/facet.js @@ -413,6 +413,9 @@ IPA.table_facet = function(spec) { that.search_all_attributes = spec.search_all_attributes; that.selectable = spec.selectable === undefined ? true : spec.selectable; + that.row_enabled_attribute = spec.row_enabled_attribute; + that.row_disabled_attribute = spec.row_disabled_attribute; + that.columns = $.ordered_map(); var init = function() { @@ -605,11 +608,31 @@ IPA.table_facet = function(spec) { that.load_records = function(records) { that.table.empty(); for (var i=0; i