[REM] kanban view :- Remove header part in view.
bzr revid: ysa@tinyerp.com-20110818103914-s1nanzp7yc33ihk8
This commit is contained in:
parent
16b84913e0
commit
8eb03e32a7
|
@ -7,26 +7,12 @@
|
|||
margin: 0 0 0.5em 0;
|
||||
}
|
||||
|
||||
.record-header {
|
||||
margin: 0.05em;
|
||||
padding-bottom: 4px;
|
||||
padding-left: 0.2em;
|
||||
}
|
||||
|
||||
.record-header .ui-icon {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.ui-sortable-placeholder {
|
||||
border: 1px dotted black;
|
||||
visibility: visible !important;
|
||||
height: 60px !important;
|
||||
}
|
||||
|
||||
.ui-sortable-placeholder * {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.openerp .oe_column_heading {
|
||||
color: #000000;
|
||||
font-size: 1.5em;
|
||||
|
|
|
@ -52,19 +52,7 @@ openerp.base_kanban.KanbanView = openerp.base.View.extend({
|
|||
},
|
||||
stop: self.on_recieve_record,
|
||||
});
|
||||
this.$element.find(".record").addClass("ui-widget ui-widget-content ui-helper-clearfix ui-corner-all")
|
||||
.find(".record-header")
|
||||
.addClass("ui-widget-header ui-corner-all")
|
||||
.prepend( "<span class='ui-icon ui-icon-closethick'></span><span class='ui-icon ui-icon-minusthick'></span>")
|
||||
.end()
|
||||
.find( ".record-content" );
|
||||
|
||||
this.$element.find(".record-header .ui-icon").click(function() {
|
||||
$(this).toggleClass("ui-icon-minusthick").toggleClass("ui-icon-plusthick");
|
||||
$(this).parents(".record:first").find(".record-content").toggle();
|
||||
});
|
||||
this.$element.find('.record .ui-icon-closethick').click(this.on_close_action);
|
||||
this.$element.find(".oe_column").disableSelection();
|
||||
this.$element.find(".record").addClass( "ui-widget ui-widget-content ui-corner-all" )
|
||||
this.$element.find('button.oe_kanban_button_new').click(this.do_add_record);
|
||||
},
|
||||
on_button_click: function (button_attrs, record_id) {
|
||||
|
@ -148,15 +136,6 @@ openerp.base_kanban.KanbanView = openerp.base.View.extend({
|
|||
}
|
||||
);
|
||||
},
|
||||
on_close_action: function (e) {
|
||||
var record_id = $(e.currentTarget).parents('.record:first').attr("id");
|
||||
if (record_id) {
|
||||
record_id = parseInt(record_id.split("_")[1]);
|
||||
if (record_id) {
|
||||
this.do_delete(record_id);
|
||||
}
|
||||
}
|
||||
},
|
||||
on_recieve_record: function (event, ui) {
|
||||
var self = this;
|
||||
var from = ui.item.index();
|
||||
|
@ -248,8 +227,8 @@ openerp.base_kanban.KanbanView = openerp.base.View.extend({
|
|||
_.each(self.all_display_data, function(data, index) {
|
||||
if (data.records.length > 0){
|
||||
_.each(data.records, function(record) {
|
||||
self.$element.find("#data_" + record.id).children().remove();
|
||||
self.$element.find("#data_" + record.id).append(new_qweb.render('custom_template', record));
|
||||
self.$element.find("#main_" + record.id).children().remove();
|
||||
self.$element.find("#main_" + record.id).append(new_qweb.render('custom_template', record));
|
||||
});
|
||||
} else {
|
||||
self.$element.find("#column_" + data.value).remove();
|
||||
|
|
|
@ -22,10 +22,7 @@
|
|||
<td class="oe_table_column" t-att-id="'column_' + columns.value">
|
||||
<div class="oe_column" t-att-id="'column_' + columns.value">
|
||||
<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.id"/></div>
|
||||
<div class="record-content" t-att-id="'data_' + record.id"></div>
|
||||
</div>
|
||||
<div class="record" t-att-id="'main_' + record.id"/>
|
||||
</t>
|
||||
</div>
|
||||
</td>
|
||||
|
|
Loading…
Reference in New Issue