mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fixed: Column header for attributes table should be full width
https://fedorahosted.org/freeipa/ticket/1841 The column header for the attributes table (IPA.attributes_widget) does not cover the entire width of the table. This problem appears in the adder dialog and details page for permissions, self-service permissions, and delegations.
This commit is contained in:
committed by
Endi S. Dewata
parent
5915e478ec
commit
09dc3562f2
@@ -248,7 +248,7 @@ IPA.attributes_widget = function(spec) {
|
|||||||
|
|
||||||
that.table = $('<table/>', {
|
that.table = $('<table/>', {
|
||||||
id:id,
|
id:id,
|
||||||
'class':'search-table aci-attribute-table'
|
'class':'search-table aci-attribute-table scrollable'
|
||||||
}).
|
}).
|
||||||
append('<thead/>').
|
append('<thead/>').
|
||||||
append('<tbody/>').
|
append('<tbody/>').
|
||||||
@@ -257,10 +257,9 @@ IPA.attributes_widget = function(spec) {
|
|||||||
var tr = $('<tr></tr>').appendTo($('thead', that.table));
|
var tr = $('<tr></tr>').appendTo($('thead', that.table));
|
||||||
|
|
||||||
tr.append($('<th/>', {
|
tr.append($('<th/>', {
|
||||||
style:"height:2em; vertical-align:bottom;",
|
html: $('<input/>', {
|
||||||
html:$('<input/>',{
|
|
||||||
type: "checkbox",
|
type: "checkbox",
|
||||||
click: function(){
|
click: function() {
|
||||||
$('.aci-attribute', that.table).
|
$('.aci-attribute', that.table).
|
||||||
attr('checked', $(this).attr('checked'));
|
attr('checked', $(this).attr('checked'));
|
||||||
that.set_dirty(that.test_dirty());
|
that.set_dirty(that.test_dirty());
|
||||||
@@ -275,7 +274,7 @@ IPA.attributes_widget = function(spec) {
|
|||||||
that.create_undo(container);
|
that.create_undo(container);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (that.object_type){
|
if (that.object_type) {
|
||||||
that.populate(that.object_type);
|
that.populate(that.object_type);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -964,30 +964,17 @@ span.main-separator{
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.aci-attribute-table tbody {
|
||||||
.aci-attribute-table {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.aci-attribute-table thead{
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.aci-attribute-table tbody{
|
|
||||||
width: 100%;
|
|
||||||
height:10em;
|
|
||||||
overflow:auto;
|
|
||||||
border-bottom: 1px solid #8a8a8a;
|
border-bottom: 1px solid #8a8a8a;
|
||||||
display: block;
|
height:10em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aci-attribute-table th.aci-attribute-column{
|
.aci-attribute-table .aci-attribute-column {
|
||||||
width: 20.5em;
|
width: 200em; /* it will fit actual width */
|
||||||
}
|
}
|
||||||
|
|
||||||
.entity-views{
|
.entity-views{
|
||||||
list-style-type:none;
|
list-style-type:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entity-views li {
|
.entity-views li {
|
||||||
|
|||||||
Reference in New Issue
Block a user