summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorAntoine Huvelle <ahu@openerp.com>2011-11-24 14:02:53 +0100
committerAntoine Huvelle <ahu@openerp.com>2011-11-24 14:02:53 +0100
commit637398a538fa596882b080fe0d7034204ee07c92 (patch)
treefe7e94636d2bb938458b756a5e73c36827869179 /addons/web/static/src/xml/base.xml
parentf90e97603cb2dace729be420f4a07b984536dbf6 (diff)
[ADD] adding a new css class 'oe_form_readonly' to the uneditable form to ease css selection and changes
bzr revid: ahu@openerp.com-20111124130253-zcmgizy9vmhk90yb
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 466e3c9c5c9..2361d187d51 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -727,6 +727,11 @@
</tr>
</table>
</t>
+<t t-name="WidgetFrame.readonly" t-extend="WidgetFrame">
+ <t t-jquery="&gt;table">
+ this.attr('class', this.attr('class')+' oe_form_readonly');
+ </t>
+</t>
<t t-name="WidgetGroup">
<t t-if="widget.string">
<fieldset class="oe_group_box">
@@ -1710,4 +1715,4 @@
<t t-name="EmptyComponent">
<div></div>
</t>
-</templates> \ No newline at end of file
+</templates>