Added support for radio buttons in table widget.

The table widget has been modified to support single-valued attribute
using radio buttons needed by some facets in HBAC Test. The widget now
uses 'pagination' flag to determine whether to show the pagination
control. The test data has also been updated.

Ticket #388
This commit is contained in:
Endi Sukma Dewata
2011-11-17 11:25:09 -06:00
committed by Endi S. Dewata
parent 8f642bbe08
commit 6f0c16e428
4 changed files with 354 additions and 52 deletions

View File

@@ -391,7 +391,6 @@ IPA.table_facet = function(spec) {
var that = IPA.facet(spec);
that.managed_entity_name = spec.managed_entity_name || that.entity.name;
that.page_length = spec.page_length === undefined ? 20 : spec.page_length;
that.pagination = spec.pagination === undefined ? true : spec.pagination;
that.search_all = spec.search_all;
@@ -509,7 +508,7 @@ IPA.table_facet = function(spec) {
name: entity.metadata.primary_key,
label: entity.metadata.label,
entity: entity,
page_length: that.page_length,
pagination: true,
search_all: that.search_all,
scrollable: true,
selectable: that.selectable && !that.read_only