diff options
| author | Fabien Meghazi <fme@openerp.com> | 2012-03-15 17:21:07 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2012-03-15 17:21:07 +0100 |
| commit | 99f956a533918719aec8ed30f4556e3a2e133ba6 (patch) | |
| tree | 42f376c98ed4ca24b7fa5d50572ddba85cb0f560 /addons/web/static/src/xml/base.xml | |
| parent | 8c47efd712bdba83c932ce7b972bef3518abac75 (diff) | |
[FIX] Fix some field
bzr revid: fme@openerp.com-20120315162107-pcw7ssitur8zb7vv
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 66 |
1 files changed, 37 insertions, 29 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 154c5fbf7f7..7ee908ae43c 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -943,12 +943,14 @@ </ul> </t> <t t-name="FieldChar"> - <input t-att-type="widget.password ? 'password' : 'text'" size="1" - t-att-name="widget.name" - t-att-id="widget.node.attrs.id" - t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}" - style="width: 100%" - /><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/> + <div t-attf-class="oe_form_field_#{type}"> + <input t-att-type="widget.password ? 'password' : 'text'" size="1" + t-att-name="widget.name" + t-att-id="widget.node.attrs.id" + t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}" + style="width: 100%" + /><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/> + </div> </t> <t t-name="FieldChar.readonly"> <div @@ -962,7 +964,7 @@ </div> </t> <t t-name="FieldEmail"> - <table cellpadding="0" cellspacing="0" border="0" width="100%"> + <table t-attf-class="oe_form_field_#{type}" cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="100%"> <t t-call="FieldChar"/> @@ -976,7 +978,7 @@ </table> </t> <t t-name="FieldUrl"> - <table cellpadding="0" cellspacing="0" border="0" width="100%"> + <table t-attf-class="oe_form_field_#{type}" cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="100%"> <t t-call="FieldChar"/> @@ -990,14 +992,16 @@ </table> </t> <t t-name="FieldText"> - <textarea rows="6" - t-att-name="widget.name" - t-attf-class="field_#{widget.type}" - style="width: 100%" - ></textarea><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/> + <div t-attf-class="oe_form_field_#{type}"> + <textarea rows="6" + t-att-name="widget.name" + t-attf-class="field_#{widget.type}" + style="width: 100%" + ></textarea><img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" t-att-src='_s + "/web/static/src/img/icons/terp-translate.png"' width="16" height="16" border="0"/> + </div> </t> <t t-name="web.datetimepicker"> - <div class="oe_datepicker_root"> + <div class="oe_datepicker_root" t-attf-class="oe_form_field_#{type}"> <input type="text" size="1" class="oe_datepicker_container" disabled="disabled" style="display: none;"/> <input type="text" size="1" style="width: 100%" t-att-name="widget.name" @@ -1007,7 +1011,7 @@ </div> </t> <t t-name="FieldSelection"> - <span class="oe_field_selection"> + <div t-attf-class="oe_form_field_#{type}"> <select t-att-name="widget.name" t-att-id="widget.node.attrs.id" @@ -1016,10 +1020,10 @@ <option><t t-esc="option[1]"/></option> </t> </select> - </span> + </div> </t> <t t-name="FieldMany2One"> - <table cellpadding="0" cellspacing="0" border="0" width="100%"> + <table t-attf-class="oe_form_field_#{type}" cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="100%" valign="top"> <t t-call="FieldChar"/> @@ -1056,10 +1060,10 @@ <t t-name="FieldOne2Many"> </t> <t t-name="FieldMany2Many"> - <div t-att-id="widget.list_id"></div> + <div t-attf-class="oe_form_field_#{type}" t-att-id="widget.list_id"></div> </t> <t t-name="FieldReference"> - <table border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms"> + <table t-attf-class="oe_form_field_#{type}" border="0" width="100%" cellpadding="0" cellspacing="0" class="oe_frame oe_forms"> <tr> <td t-attf-class="oe_form_frame_cell oe_form_selection oe_form_view_reference_selection"> </td> @@ -1069,17 +1073,19 @@ </table> </t> <t t-name="FieldBoolean"> - <input type="checkbox" - t-att-name="widget.name" - t-attf-class="field_#{widget.type}"/> + <div t-attf-class="oe_form_field_#{type}"> + <input type="checkbox" + t-att-name="widget.name" + t-attf-class="field_#{widget.type}"/> + </div> </t> <t t-name="FieldProgressBar"> - <div t-opentag="true" class="oe-progressbar"> + <div t-attf-class="oe_form_field_#{type}" t-opentag="true"> <span></span> </div> </t> <t t-name="FieldBinaryImage"> - <table cellpadding="0" cellspacing="0" border="0"> + <table t-attf-class="oe_form_field_#{type}" cellpadding="0" cellspacing="0" border="0"> <tr> <td align="center"> <img t-att-src='_s + "/web/static/src/img/placeholder.png"' class="oe-binary-image" @@ -1128,7 +1134,7 @@ </table> </t> <t t-name="FieldBinaryFile"> - <table cellpadding="0" cellspacing="0" border="0" width="100%"> + <table t-attf-class="oe_form_field_#{type}" cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="100%"> <input type="text" size="1" readonly="readonly" @@ -1178,10 +1184,12 @@ </table> </t> <t t-name="WidgetButton"> - <button type="button" class="oe_button"> - <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"/> - <span t-if="widget.string"><t t-esc="widget.string"/></span> - </button> + <div t-attf-class="oe_form_field_#{type}"> + <button type="button" class="oe_button"> + <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"/> + <span t-if="widget.string"><t t-esc="widget.string"/></span> + </button> + </div> </t> <t t-name="WidgetButton.tooltip" t-extend="WidgetLabel.tooltip"> <t t-jquery="div.oe_tooltip_string" t-operation="replace"> |
