aci attribute table two columns

This commit is contained in:
Adam Young 2011-01-24 22:21:31 -05:00
parent 485e4a097f
commit 32c74fccef
2 changed files with 20 additions and 20 deletions

View File

@ -42,6 +42,7 @@ IPA.populate_attribute_table = function (table, entity){
id:'aciattr-'+aciattrs[a].toLowerCase(), id:'aciattr-'+aciattrs[a].toLowerCase(),
"class":'aci-attribute' "class":'aci-attribute'
})); }));
td = $('<td/>').appendTo(aci_tr);
td.append($('<label/>',{ td.append($('<label/>',{
text:aciattrs[a].toLowerCase()})); text:aciattrs[a].toLowerCase()}));
} }
@ -58,25 +59,23 @@ IPA.attribute_table_widget= function (spec){
var dd = $('<dd/>').appendTo(container); var dd = $('<dd/>').appendTo(container);
table = $('<table/>',{ table = $('<table/>',{
id:id, id:id,
'class':'search-table'}). 'class':'search-table aci-attribute-table'}).
append('<thead/>'). append('<thead/>').
append($('<tbody/>',{ append($('<tbody/>')).
style:"height:30em; overflow:auto;"
})).
appendTo(dd); appendTo(dd);
$('<tr></tr>'). var tr = $('<tr></tr>').appendTo($('thead', table));
append($('<th/>',{ tr.append($('<th/>',{
style:"height:2em; vertical-align:bottom;", style:"height:2em; vertical-align:bottom;",
html:$('<input/>',{ html:$('<input/>',{
type: "checkbox", type: "checkbox",
click: function(){ click: function(){
$('.aci-attribute'). $('.aci-attribute').
attr('checked', $(this).attr('checked')); attr('checked', $(this).attr('checked'));
}}). }})
after('<label>Attribute</lable>') })).
})). append('<th class="aci-attribute-column">Attribute</th>');
appendTo($('thead', table));
IPA.populate_attribute_table(table, object_type); IPA.populate_attribute_table(table, object_type);
}; };

View File

@ -597,12 +597,13 @@ a.action-button-disabled {
margin-top: 2em; margin-top: 2em;
} }
.search-table tr:nth-child(even){ .aci-attribute-table tbody{
# background-color:#CCC; height:30em;
overflow:auto;
} }
.search-table tr:nth-child(odd){ .aci-attribute-table th.aci-attribute-column{
# background-color:#FFF; width: 25em;
} }
.entity-views{ .entity-views{