[FIX]Refixed the issue of progressbar and changed the color as well as border radius.
bzr revid: msh@tinyerp.com-20120703104541-knwk5wted06zr4tf
This commit is contained in:
@@ -1613,6 +1613,33 @@ label.error {
|
||||
background: white;
|
||||
min-width: 90px;
|
||||
}
|
||||
.openerp .oe_list_progressbar_outer {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 1px solid #AAAAAA;
|
||||
background: #EEEEEE;
|
||||
border-radius: 3px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.openerp .oe_list_progressbar_inner {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
border: 1px solid #AAAAAA;
|
||||
background: #AAAAAA;
|
||||
height: 100%;
|
||||
margin-top: -1px;
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
.openerp .oe_list_progressbar_text {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.openerp tbody.ui-widget-content {
|
||||
margin-bottom: 10px;
|
||||
border-spacing: 4px;
|
||||
|
||||
@@ -336,9 +336,9 @@ openerp.web.format_cell = function (row_data, column, options) {
|
||||
href: download_url,
|
||||
size: row_data[column.id].value
|
||||
});
|
||||
case 'progressbar':
|
||||
return _.template(
|
||||
'<progress value="<%-value%>" max="100"><%-value%>%</progress>', {
|
||||
case 'progressbar':
|
||||
return _.template('<div class="oe_list_progressbar_outer"> <div class="oe_list_progressbar_inner" style="width: <%-value%>%;"></div><div class="oe_list_progressbar_text"><%-value%>%</div></div>',
|
||||
{
|
||||
value: _.str.sprintf("%.0f", row_data[column.id].value || 0)
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user