[IMP] website: kanban: remove default layout with thumbnail class

bzr revid: chm@openerp.com-20130822093049-6kcj1eobj2sl2nn4
This commit is contained in:
Christophe Matthieu 2013-08-22 11:30:49 +02:00
parent 833951634e
commit 4b67f75722
3 changed files with 27 additions and 28 deletions

View File

@ -637,7 +637,7 @@
$.post('/website/kanban/', data, function (col) {
$col.find("> .thumbnail").remove();
$pagination.last().before('<div class="thumbnail">'+col+'</div>');
$pagination.last().before(col);
});
var page_start = page - parseInt(Math.floor((scope-1)/2));

View File

@ -515,7 +515,18 @@
<tr>
<t t-foreach="objects">
<t t-set="pager">
<td class="js_kanban_col"
t-att-data-template="template"
t-att-data-domain="domain"
t-att-data-page_count="page_count"
t-att-data-model="model"
t-att-data-step="step"
t-att-data-orderby="orderby">
<t t-foreach="object_ids" t-as="object_id">
<t t-call="#{ template }"/>
</t>
<!-- pager -->
<div t-if="1 != page_end" class="pagination pagination-centered">
<ul>
<li t-attf-class="prev #{'active' if page == 1 else '' }" >
@ -531,20 +542,6 @@
</li>
</ul>
</div>
</t>
<td class="js_kanban_col"
t-att-data-template="template"
t-att-data-domain="domain"
t-att-data-page_count="page_count"
t-att-data-model="model"
t-att-data-step="step"
t-att-data-orderby="orderby">
<!--t t-raw="pager"/-->
<div t-foreach="object_ids" t-as="object_id" class="thumbnail">
<t t-call="#{ template }"/>
</div>
<t t-raw="pager"/>
</td>
</t>

View File

@ -15,19 +15,21 @@
<template id="kanban_card" name="Project">
<a t-attf-href="/task/#{ object_id.id }/"><span t-field="object_id.name"/></a>
<div>
Assigned to <span t-field="object_id.user_id"/>
<div class="thumbnail">
<a t-attf-href="/task/#{ object_id.id }/"><span t-field="object_id.name"/></a>
<div>
Assigned to <span t-field="object_id.user_id"/>
</div>
<div>
<span t-foreach="object_id.categ_ids" t-as="categ_id" class="label">
<t t-esc="categ_id.name"/>
</span>
</div>
<small>
<i class="icon-time"></i> <span t-field="object_id.date_start"/><br/>
<t t-if="object_id.date_end">Ending Date: <span t-field="object_id.date_end"/></t>
</small>
</div>
<div>
<span t-foreach="object_id.categ_ids" t-as="categ_id" class="label">
<t t-esc="categ_id.name"/>
</span>
</div>
<small>
<i class="icon-time"></i> <span t-field="object_id.date_start"/><br/>
<t t-if="object_id.date_end">Ending Date: <span t-field="object_id.date_end"/></t>
</small>
</template>
<template id="index" name="Project">