From 6ca3b5c569eee394945347e65ee7d9a465524dcb Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Mon, 5 Dec 2011 23:25:07 -0600 Subject: [PATCH] Fixed CSS for HBAC Test The tables in HBAC Test have been modified to expand according to window size. Hard-coded CSS codes have been moved into ipa.css. Ticket #388 --- install/ui/hbactest.js | 133 ++++++++++++++++++++++++++++------------- install/ui/ipa.css | 98 +++++++++++++++++++++++++++++- 2 files changed, 187 insertions(+), 44 deletions(-) diff --git a/install/ui/hbactest.js b/install/ui/hbactest.js index 7f7030b9c..602cba6f2 100644 --- a/install/ui/hbactest.js +++ b/install/ui/hbactest.js @@ -154,7 +154,7 @@ IPA.hbac.test_facet = function(spec) { that.create_buttons = function(container) { var buttons = $('
', { - style: 'float: right' + 'class': 'hbac-test-navigation-buttons' }).appendTo(container); var facet_group = that.entity.get_facet_group('default'); @@ -233,7 +233,7 @@ IPA.hbac.test_facet = function(spec) { }; that.get_search_command_name = function() { - return that.managed_entity.name + '_find' + (that.pagination ? "_pkeys" : ""); + return that.managed_entity.name + '_find' + (that.pagination ? '_pkeys' : ''); }; that.refresh = function() { @@ -287,10 +287,15 @@ IPA.hbac.test_select_facet = function(spec) { that.create_content = function(container) { - var header = $('

', { - text: that.label + var header = $('
', { + 'class': 'hbac-test-header' }).appendTo(container); + var title = $('', { + text: that.label, + 'class': 'hbac-test-title' + }).appendTo(header); + var filter_container = $('
', { 'class': 'search-filter' }).appendTo(header); @@ -318,17 +323,21 @@ IPA.hbac.test_select_facet = function(spec) { header.append(IPA.create_network_spinner()); - var div = $('
', { - style: 'position: relative; height: 200px' + var content = $('
', { + 'class': 'hbac-test-content' }).appendTo(container); - that.table.create(div); - - container.append('
'); + that.table.create(content); var id = that.entity.name+'-'+that.name+'-external'; var pkey_name = that.managed_entity.metadata.primary_key; + var tr = $('').appendTo(that.table.tfoot); + + var td = $('', { + name: 'external' + }).appendTo(tr); + that.external_radio = $('', { id: id, type: 'radio', @@ -337,25 +346,27 @@ IPA.hbac.test_select_facet = function(spec) { click: function() { that.selected_values = [ that.external_radio.val() ]; } - }).appendTo(container); + }).appendTo(td); $('