summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2012-07-10 11:44:31 +0200
committerFabien Meghazi <fme@openerp.com>2012-07-10 11:44:31 +0200
commit7880aa4beb8067e7717ef62e6a571fd000350ea6 (patch)
tree81cc133fd5104b646a6b68151a07fce30fdaa496 /addons/web/static/src/xml/base.xml
parente2970d33eeb89dc760c9b22576d5f6901532c4ed (diff)
[IMP] FormView: support for @style of fields
bzr revid: fme@openerp.com-20120710094431-tgsrrnkdyxlulkqt
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml31
1 files changed, 16 insertions, 15 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 29a7a61aa30..ee0f22cc07d 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -863,7 +863,7 @@
</ul>
</t>
<t t-name="FieldChar">
- <span t-att-class="'oe_form_field '+widget.widget_class">
+ <span t-att-class="'oe_form_field '+widget.widget_class" t-att-style="widget.node.attrs.style">
<t t-if="!widget.get('effective_readonly')">
<input t-att-type="widget.password ? 'password' : 'text'"
t-att-id="widget.id_for_label"
@@ -875,7 +875,7 @@
</span>
</t>
<t t-name="FieldEmail">
- <span class="oe_form_field oe_form_field_email oe_form_field_with_button">
+ <span class="oe_form_field oe_form_field_email oe_form_field_with_button" t-att-style="widget.node.attrs.style">
<a t-if="widget.get('effective_readonly')" href="#" class="oe_form_uri" target="_blank"/>
<t t-if="!widget.get('effective_readonly')">
<div>
@@ -900,7 +900,7 @@
</t>
</t>
<t t-name="FieldText">
- <div class="oe_form_field oe_form_field_text">
+ <div class="oe_form_field oe_form_field_text" t-att-style="widget.node.attrs.style">
<textarea rows="6"
t-att-name="widget.name"
class="field_text"
@@ -925,13 +925,13 @@
</span>
</t>
<t t-name="FieldDate">
- <span class="oe_form_field oe_datepicker_root oe_form_field_date"/>
+ <span class="oe_form_field oe_datepicker_root oe_form_field_date" t-att-style="widget.node.attrs.style"/>
</t>
<t t-name="FieldDatetime">
- <span class="oe_form_field oe_datepicker_root oe_form_field_datetime"/>
+ <span class="oe_form_field oe_datepicker_root oe_form_field_datetime" t-att-style="widget.node.attrs.style"/>
</t>
<t t-name="FieldSelection">
- <span class="oe_form_field oe_form_field_selection">
+ <span class="oe_form_field oe_form_field_selection" t-att-style="widget.node.attrs.style">
<select t-if="!widget.get('effective_readonly')"
t-att-name="widget.name"
t-att-tabindex="widget.node.attrs.tabindex"
@@ -944,7 +944,7 @@
</span>
</t>
<t t-name="FieldMany2One">
- <span class="oe_form_field oe_form_field_many2one oe_form_field_with_button">
+ <span class="oe_form_field oe_form_field_many2one oe_form_field_with_button" t-att-style="widget.node.attrs.style">
<a t-if="widget.get('effective_readonly')" href="#" class="oe_form_uri"/>
<t t-if="!widget.get('effective_readonly')">
<button class="oe_button oe_m2o_cm_button" title="Open Resource">
@@ -965,7 +965,7 @@
</span>
</t>
<t t-name="FieldMany2ManyTags">
- <div class="oe_form_field oe_form_field_many2manytags">
+ <div class="oe_form_field oe_form_field_many2manytags" t-att-style="widget.node.attrs.style">
<t t-if="! widget.get('effective_readonly')">
<textarea rows="1" style="width: 100%"
t-att-placeholder="widget.node.attrs.placeholder"></textarea>
@@ -982,7 +982,7 @@
</t>
</t>
<t t-name="FieldReference">
- <table class="oe_form_field oe_form_field_reference" border="0" cellpadding="0" cellspacing="0">
+ <table class="oe_form_field oe_form_field_reference" border="0" cellpadding="0" cellspacing="0" t-att-style="widget.node.attrs.style">
<tr>
<td t-attf-class="oe_form_frame_cell oe_form_selection">
<span t-attf-class="oe_form_view_reference_selection"/>
@@ -994,7 +994,7 @@
</table>
</t>
<t t-name="FieldBoolean">
- <span class="oe_form_field oe_form_field_boolean">
+ <span class="oe_form_field oe_form_field_boolean" t-att-style="widget.node.attrs.style">
<input type="checkbox"
t-att-id="widget.id_for_label"
t-att-name="widget.name"
@@ -1004,12 +1004,12 @@
</span>
</t>
<t t-name="FieldProgressBar">
- <span class="oe_form_field oe_form_field_progressbar" t-opentag="true">
+ <span class="oe_form_field oe_form_field_progressbar" t-att-style="widget.node.attrs.style">
<span></span>
</span>
</t>
<t t-name="FieldStatus">
- <ul class="oe_form_steps"/>
+ <ul class="oe_form_steps" t-att-style="widget.node.attrs.style"/>
</t>
<t t-name="FieldStatus.content">
<t t-set="size" t-value="widget.to_show.length"/>
@@ -1021,7 +1021,7 @@
</t>
</t>
<t t-name="FieldBinaryImage">
- <span class="oe_form_field oe_form_field_image">
+ <span class="oe_form_field oe_form_field_image" t-att-style="widget.node.attrs.style">
<div class="oe_form_field_image_controls oe_edit_only">
<t t-call="HiddenInputFile">
<t t-set="fileupload_id" t-value="widget.fileupload_id"/>
@@ -1049,7 +1049,7 @@
</t>
<t t-name="FieldBinaryFile">
<t t-if="!widget.get('effective_readonly')">
- <table class="oe_form_field oe_form_field_binary" cellpadding="0" cellspacing="0" border="0">
+ <table class="oe_form_field oe_form_field_binary" cellpadding="0" cellspacing="0" border="0" t-att-style="widget.node.attrs.style">
<tr>
<td>
<input type="text" size="1" readonly="readonly"
@@ -1097,7 +1097,7 @@
</table>
</t>
<t t-if="widget.get('effective_readonly')">
- <span>
+ <span t-att-style="widget.node.attrs.style">
<a href="javascript:void(0)" class="oe_form_uri"/>
</span>
</t>
@@ -1116,6 +1116,7 @@
</t>
<t t-name="WidgetButton">
<button type="button" class="oe_button oe_form_button"
+ t-att-style="widget.node.attrs.style"
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus">
<img t-if="widget.node.attrs.icon" t-att-src="_s + '/web/static/src/img/icons/' + widget.node.attrs.icon + '.png'" width="16" height="16"/>