summaryrefslogtreecommitdiff
path: root/addons/base/static/src/xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-04-07 14:12:22 +0200
committerXavier Morel <xmo@openerp.com>2011-04-07 14:12:22 +0200
commitee6df3ca58faafa50eda181e796c56fc1393b197 (patch)
treeb5ea89cc4e9224da77de2b5483c3f748588092fc /addons/base/static/src/xml
parent51a7b673c55ff64391a3383cc414d575db1f2efe (diff)
[TEST] that by default the list view renders each row with a selection checkbox
bzr revid: xmo@openerp.com-20110407121222-eipzf31zf3e9x45s
Diffstat (limited to 'addons/base/static/src/xml')
-rw-r--r--addons/base/static/src/xml/base.xml22
1 files changed, 14 insertions, 8 deletions
diff --git a/addons/base/static/src/xml/base.xml b/addons/base/static/src/xml/base.xml
index e04de920943..1dcb30006d4 100644
--- a/addons/base/static/src/xml/base.xml
+++ b/addons/base/static/src/xml/base.xml
@@ -166,24 +166,30 @@
<button type="button" data-pager-action="last">Last</button>
</div>
<table>
- <tr><t t-call="ListView.header"/></tr>
+ <t t-call="ListView.header"/>
</table>
</t>
<t t-name="ListView.header">
<thead>
- <t t-foreach="columns" t-as="column">
- <th t-if="column.invisible !== '1'">
- <t t-if="column.tag !== 'button'">
- <t t-esc="column.string"/>
- </t>
- </th>
- </t>
+ <tr>
+ <th t-if="options.selectable"/>
+ <t t-foreach="columns" t-as="column">
+ <th t-if="column.invisible !== '1'">
+ <t t-if="column.tag !== 'button'">
+ <t t-esc="column.string"/>
+ </t>
+ </th>
+ </t>
+ </tr>
</thead>
</t>
<t t-name="ListView.rows" t-foreach="rows" t-as="row">
<t t-call="ListView.row"/>
</t>
<tr t-name="ListView.row">
+ <th t-if="options.selectable" class="oe-record-selector">
+ <input type="checkbox"/>
+ </th>
<t t-foreach="columns" t-as="column">
<!-- TODO: handle attrs -->
<td t-if="column.invisible !== '1'" t-att-title="column.help">