summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2011-10-27 14:43:25 +0200
committerFabien Meghazi <fme@openerp.com>2011-10-27 14:43:25 +0200
commit66ea5439741704346a45441b009240797628636f (patch)
tree7ff3b94a70d9c8d828ddd9044e324683d94f29a9 /addons/web/static/src/xml
parentecfa2d532e90e70dd5166a9a40ec105bb8791ec1 (diff)
[FIX] Add support for @align attribute in form views
lp bug: https://launchpad.net/bugs/844625 fixed bzr revid: fme@openerp.com-20111027124325-ckd8kuujbb591nqu
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index dbee68fdb83..8984daffeb3 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -752,7 +752,7 @@
</t>
<t t-name="WidgetLabel">
<label t-att-for="widget.element_id"
- t-att-class="'oe_label' + (widget.help ? '_help' : '')"
+ t-attf-class="oe_label#{widget.help ? '_help' : ''} oe_align_#{widget.align}"
t-att-title="widget.help">
<t t-esc="widget.string"/>
<span t-if="widget.help">?</span>
@@ -760,7 +760,7 @@
</label>
</t>
<t t-name="WidgetParagraph">
- <p class="oe_form_paragraph"><t t-esc="widget.string"/></p>
+ <p t-attf-class="oe_form_paragraph oe_align_#{widget.align}"><t t-esc="widget.string"/></p>
</t>
<t t-name="FieldChar">
<input t-att-type="widget.password ? 'password' : 'text'" size="1"