summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2011-12-07 14:24:47 +0100
committerFabien Meghazi <fme@openerp.com>2011-12-07 14:24:47 +0100
commit74bd504779bb92f5e79f8492a05c7f209cf2df53 (patch)
treed8c35f8a8258b26bec5c6a57276d08939e68ba98 /addons/web/static/src
parent4e6f2e376e5dc282a171c7282d773ffeef60d1c2 (diff)
[FIX] Translate icon is wrapped down
lp bug: https://launchpad.net/bugs/898675 fixed bzr revid: fme@openerp.com-20111207132447-dr9jbz25gqyhcar2
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/css/base.css15
-rw-r--r--addons/web/static/src/xml/base.xml15
2 files changed, 11 insertions, 19 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index 067ea09cd38..0281ec3750f 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -1061,6 +1061,7 @@ label.error {
.openerp .oe_forms label.oe_label, .openerp .oe_forms label.oe_label_help {
margin: 4px 0 0 3px;
+ white-space: nowrap;
}
.openerp .oe_forms .searchview_group_content label.oe_label, .openerp .searchview_group_content .oe_forms label.oe_label_help { /* making a distinction between labels in search view and other labels */
margin: 3px 0 0 3px;
@@ -1153,9 +1154,9 @@ label.error {
.openerp .oe_input_icon {
position: absolute;
cursor: pointer;
- right: 5px;
- top: 3px;
- z-index: 2;
+ right: 4px;
+ top: 5px;
+ z-index: 1;
}
.openerp .oe_datepicker_container {
position: absolute;
@@ -1164,7 +1165,6 @@ label.error {
display: none;
}
.openerp .oe_datepicker_root {
- position: relative;
display: inline-block;
}
.openerp .oe_forms.oe_frame .oe_datepicker_root {
@@ -1178,13 +1178,6 @@ label.error {
right: 5px;
top: 3px;
}
-.openerp img.oe_field_translate {
- margin-left: -21px;
- vertical-align: top;
- cursor: pointer;
- position: relative;
- top: 4px;
-}
.openerp .oe_trad_field.touched {
border: 1px solid green !important;
}
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index a75101f9867..618d135a919 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -726,7 +726,6 @@
<t t-foreach="row" t-as="td">
<td t-att-colspan="td.colspan gt 1 ? td.colspan : undefined"
t-att-width="td.width"
- t-att-nowrap="td.nowrap or td.is_field_m2o? 'true' : undefined"
t-att-valign="td.table ? 'top' : undefined"
t-attf-class="oe_form_frame_cell #{td.classname} #{td.element_class}"
>
@@ -863,15 +862,15 @@
t-att-name="widget.name"
t-att-id="widget.element_id"
t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}"
- t-attf-style="width: #{widget.field.translate ? '99' : '100'}%"
+ style="width: 100%"
/>
- <img class="oe_field_translate" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
+ <img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
</t>
<t t-name="FieldChar.readonly">
<div
t-att-id="widget.element_id"
t-attf-class="field_#{widget.type} #{_(['integer', 'float', 'float_time']).contains(widget.type) ? 'oe-number' : ''}"
- t-attf-style="width: #{widget.field.translate ? '99' : '100'}%">
+ style="width: 100%">
</div>
</t>
<t t-name="FieldURI.readonly">
@@ -880,7 +879,7 @@
<t t-name="FieldEmail">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
- <td width="100%">
+ <td width="100%" style="position: relative">
<t t-call="FieldChar"/>
</td>
<td width="16">
@@ -894,7 +893,7 @@
<t t-name="FieldUrl">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
- <td width="100%">
+ <td width="100%" style="position: relative">
<t t-call="FieldChar"/>
</td>
<td width="16">
@@ -910,9 +909,9 @@
t-att-name="widget.name"
t-att-id="widget.element_id"
t-attf-class="field_#{widget.type}"
- t-attf-style="width: #{widget.field.translate ? '99' : '100'}%"
+ style="width: 100%"
></textarea>
- <img class="oe_field_translate" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
+ <img class="oe_field_translate oe_input_icon" t-if="widget.field.translate" src="/web/static/src/img/icons/terp-translate.png" width="16" height="16" border="0"/>
</t>
<t t-name="web.datetimepicker">
<div class="oe_datepicker_root">