2011-08-01 10:15:28 +00:00
|
|
|
<template>
|
2011-09-05 09:53:44 +00:00
|
|
|
<t t-name="KanbanView">
|
2011-09-16 13:00:49 +00:00
|
|
|
<div>
|
|
|
|
<div>
|
2011-09-05 09:53:44 +00:00
|
|
|
<div class="oe_form_header">
|
2011-09-19 06:18:27 +00:00
|
|
|
<img id="previous-column" src="/web/static/src/img/icons/STOCK_GO_BACK.png"/>
|
2011-09-05 09:53:44 +00:00
|
|
|
<button type="button" class="oe_kanban_button_new">New</button>
|
2011-09-19 06:18:27 +00:00
|
|
|
<img id="next-column" src="/web/static/src/img/icons/STOCK_GO_FORWARD.png" align="right"/>
|
2011-09-05 09:53:44 +00:00
|
|
|
</div>
|
2011-09-16 13:00:49 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="width:100%;" class="oe_kanban_view">
|
|
|
|
<div class="oe_kanban_row">
|
|
|
|
<div t-foreach="data" t-as="columns" class="oe_table_column oe_column_heading" t-att-id="'column_' + columns.value">
|
|
|
|
<t t-if="columns.value" t-esc="columns.header"/>
|
2011-09-05 09:53:44 +00:00
|
|
|
</div>
|
2011-09-16 13:00:49 +00:00
|
|
|
</div>
|
|
|
|
<div class="oe_kanban_row">
|
|
|
|
<div t-foreach="data" t-as="columns" class="oe_table_column" t-att-id="'column_' + columns.value">
|
|
|
|
<div class="oe_column" t-att-id="'column_' + columns.value">
|
|
|
|
<div t-foreach="columns.records" t-as="record" class="oe_kanban_record" t-att-id="'main_' + record.id"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-08-01 10:15:28 +00:00
|
|
|
</t>
|
2011-09-12 12:59:38 +00:00
|
|
|
<t t-name="KanbanColorPicker">
|
|
|
|
<table cellspacing="0" cellpadding="0" border="0" class="oe_kanban_color_picker">
|
|
|
|
<tr>
|
|
|
|
<t t-foreach="colors" t-as="color">
|
|
|
|
<td t-att-bgcolor="color">
|
|
|
|
<a href="#" t-att-data-color="color_index + 1"/>
|
|
|
|
</td>
|
|
|
|
<t t-if="((color_index + 1) % Math.round(colors.length / columns)) == 0"></tr><tr></t>
|
|
|
|
</t>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</t>
|
2011-09-01 16:10:51 +00:00
|
|
|
</template>
|