summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-09-08 14:55:10 +0200
committerXavier Morel <xmo@openerp.com>2011-09-08 14:55:10 +0200
commit32bccb877b711fd3cf20d290db0a8390c0e676b7 (patch)
tree58e8b0c1a49d1ffea8fe950cff118bb796441586 /addons/web/static/src/xml/base.xml
parentb7ccdadc1784099a4f1d2853e106441397bd977f (diff)
[IMP] look of non-selectable or non-editable editable list views when a row is being edited
dynamically add and remove padding rows lp bug: https://launchpad.net/bugs/842644 fixed bzr revid: xmo@openerp.com-20110908125510-fb7vcjsixj5sqhpz
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml22
1 files changed, 6 insertions, 16 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 5ac1929fce3..7a6610850b3 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -566,7 +566,7 @@
</table>
</th>
</tr>
- <tr t-if="options.header">
+ <tr t-if="options.header" class="oe-listview-header-columns">
<t t-foreach="columns" t-as="column">
<th t-if="column.meta">
<t t-esc="column.string"/>
@@ -1211,21 +1211,11 @@
<button type="button" class="oe_formopenpopup-form-close">Cancel</button>
</t>
<t t-name="ListView.row.frame" t-extend="WidgetFrame">
- <t t-jquery="tr">
- $(document.createElement('t'))
- .append(this.contents())
- .attr({
- 't-foreach': this.attr('t-foreach'),
- 't-as': this.attr('t-as')
- })
- .replaceAll(this)
- .after($(document.createElement('td')).append(
- $(document.createElement('button')).attr({
- 'class': 'oe-edit-row-save', 'type': 'button'}).text('Save')))
- .before($(document.createElement('td')).append(
- $(document.createElement('button')).attr({
- 'class': 'oe-edit-row-cancel', 'type': 'button'}).text('Cancel')))
- .unwrap();
+ <t t-jquery="tr" t-operation="prepend">
+ <td><button type="button" class="oe-edit-row-cancel">Cancel</button></td>
+ </t>
+ <t t-jquery="tr" t-operation="append">
+ <td><button type="button" class="oe-edit-row-save">Save</button></td>
</t>
</t>