[IMP] basic styling cleanup for listview table

bzr revid: xmo@openerp.com-20110412092222-8htdqnzygqa3fsv6
This commit is contained in:
Xavier Morel 2011-04-12 11:22:22 +02:00
parent e14997c7bc
commit 5ed6be00fb
3 changed files with 10 additions and 3 deletions

View File

@ -414,6 +414,13 @@ body.openerp {
padding-left: 10px;
}
/* List */
.openerp .oe-listview table {
clear: right;
width: 100%;
border-spacing: 0;
border-collapse: collapse;
}
/* Form */
.openerp .required.error {

View File

@ -35,7 +35,7 @@ openerp.base.ListView = openerp.base.Controller.extend(
this.options = _.extend({}, this.defaults, options || {});
},
start: function() {
//this.log('Starting ListView '+this.model+this.view_id)
this.$element.addClass('oe-listview');
return this.rpc("/base/listview/load", {"model": this.model, "view_id":this.view_id,
toolbar:!!this.view_manager.sidebar}, this.on_loaded);
},
@ -119,7 +119,7 @@ openerp.base.ListView = openerp.base.Controller.extend(
var PAGE_SIZE = 50,
bodies_count = Math.ceil(this.rows.length / PAGE_SIZE),
body = 0,
$body = $('<tbody>').appendTo($table);
$body = $('<tbody class="ui-widget-content">').appendTo($table);
var rendered = $.Deferred();
var render_body = function () {

View File

@ -175,7 +175,7 @@
</table>
</t>
<t t-name="ListView.header">
<thead t-if="options.header">
<thead t-if="options.header" class="ui-widget-header">
<tr t-if="options.selectable and options.deletable">
<th t-att-colspan="visible_columns.length + 2">
<button type="button" id="oe-list-delete">