mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
aci attribute table two columns
This commit is contained in:
parent
485e4a097f
commit
32c74fccef
@ -42,6 +42,7 @@ IPA.populate_attribute_table = function (table, entity){
|
||||
id:'aciattr-'+aciattrs[a].toLowerCase(),
|
||||
"class":'aci-attribute'
|
||||
}));
|
||||
td = $('<td/>').appendTo(aci_tr);
|
||||
td.append($('<label/>',{
|
||||
text:aciattrs[a].toLowerCase()}));
|
||||
}
|
||||
@ -58,25 +59,23 @@ IPA.attribute_table_widget= function (spec){
|
||||
var dd = $('<dd/>').appendTo(container);
|
||||
table = $('<table/>',{
|
||||
id:id,
|
||||
'class':'search-table'}).
|
||||
'class':'search-table aci-attribute-table'}).
|
||||
append('<thead/>').
|
||||
append($('<tbody/>',{
|
||||
style:"height:30em; overflow:auto;"
|
||||
})).
|
||||
append($('<tbody/>')).
|
||||
appendTo(dd);
|
||||
|
||||
$('<tr></tr>').
|
||||
append($('<th/>',{
|
||||
style:"height:2em; vertical-align:bottom;",
|
||||
html:$('<input/>',{
|
||||
type: "checkbox",
|
||||
click: function(){
|
||||
$('.aci-attribute').
|
||||
attr('checked', $(this).attr('checked'));
|
||||
}}).
|
||||
after('<label>Attribute</lable>')
|
||||
})).
|
||||
appendTo($('thead', table));
|
||||
var tr = $('<tr></tr>').appendTo($('thead', table));
|
||||
tr.append($('<th/>',{
|
||||
style:"height:2em; vertical-align:bottom;",
|
||||
html:$('<input/>',{
|
||||
type: "checkbox",
|
||||
click: function(){
|
||||
$('.aci-attribute').
|
||||
attr('checked', $(this).attr('checked'));
|
||||
}})
|
||||
})).
|
||||
append('<th class="aci-attribute-column">Attribute</th>');
|
||||
|
||||
IPA.populate_attribute_table(table, object_type);
|
||||
};
|
||||
|
||||
|
@ -597,12 +597,13 @@ a.action-button-disabled {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
.search-table tr:nth-child(even){
|
||||
# background-color:#CCC;
|
||||
.aci-attribute-table tbody{
|
||||
height:30em;
|
||||
overflow:auto;
|
||||
}
|
||||
|
||||
.search-table tr:nth-child(odd){
|
||||
# background-color:#FFF;
|
||||
.aci-attribute-table th.aci-attribute-column{
|
||||
width: 25em;
|
||||
}
|
||||
|
||||
.entity-views{
|
||||
|
Loading…
Reference in New Issue
Block a user