[IMP] Improve header and css in kanban view.

bzr revid: ysa@tinyerp.com-20110803052508-ru7wnpjhfgohxb9u
This commit is contained in:
Yogesh (OpenERP)
2011-08-03 10:55:08 +05:30
parent 2098c3abc5
commit efe8967203
3 changed files with 5 additions and 12 deletions
+3 -9
View File
@@ -1,16 +1,14 @@
.openerp .oe_column {
width: 100%;
float: left;
padding-bottom: 100px;
}
.record {
width: 100%;
margin: 0 1em 1em 0;
margin: 0 0 0.5em 0;
}
.record-header {
margin: 0.3em;
margin: 0.05em;
padding-bottom: 4px;
padding-left: 0.2em;
}
@@ -19,10 +17,6 @@
float: right;
}
.record-content {
padding: 0.4em;
}
.ui-sortable-placeholder {
border: 1px dotted black;
visibility: visible !important;
@@ -33,7 +27,7 @@
visibility: hidden;
}
.openerp .oe_column_heading{
.openerp .oe_column_heading {
color: #000000;
font-size: 1.5em;
font-weight: bold;
@@ -59,7 +59,6 @@ openerp.base_kanban.KanbanView = openerp.base.View.extend({
});
this.$element.find('.record .ui-icon-closethick').click(this.on_close_action);
this.$element.find(".oe_column").disableSelection();
this.$element.find(".ui.item").css("background-color","red");
self.$element.find( ".oe_column" ).css("width", 99 / datas.length +"%");
},
@@ -5,11 +5,11 @@
<t t-foreach="datas" t-as="columns">
<td class="oe_column" t-att-id="'column_' + columns.value">
<t t-if="columns.value">
<table><tr><td class="oe_column_heading"><t t-esc="columns.value"/></td></tr></table>
<table><tr><td class="oe_column_heading"><t t-esc="columns.value"/> (<t t-esc="columns.records.length"/>)</td></tr></table>
</t>
<t t-foreach="columns.records" t-as="record">
<div class="record" t-att-id="'main_' + record.id">
<div class="record-header" t-att-id="'header_' + record.id"><t t-esc="record.name"/></div>
<div class="record-header" t-att-id="'header_' + record.id"><t t-esc="record.id"/></div>
<div class="record-content" t-att-id="'data_' + record.id"></div>
</div>
</t>