[IMP] base: share labels+tooltips CSS between form & search views

bzr revid: odo@openerp.com-20110902091922-pulvxzsounk9mu7d
This commit is contained in:
Olivier Dony 2011-09-02 11:19:22 +02:00
parent 681af866e4
commit 21af540637
2 changed files with 11 additions and 8 deletions

View File

@ -832,15 +832,17 @@ label.error {
float: right;
}
.openerp label.oe_form_label_help {
.openerp label.oe_label_help, .openerp label.oe_label {
display: block;
}
.openerp label.oe_label_help {
cursor: help;
}
.openerp label.oe_form_label, .openerp label.oe_form_label_help {
display: block;
.openerp .oe_form_field label.oe_label, .openerp .oe_form_field label.oe_label_help {
text-align: right;
margin: 3px 0 0 10px;
}
.openerp label.oe_form_label_help span {
.openerp label.oe_label_help span {
font-size: 80%;
color: darkgreen;
vertical-align:top;

View File

@ -475,7 +475,7 @@
</tr>
<tr t-foreach="widget.view.translatable_fields" t-as="field">
<td class="oe_form_frame_cell" width="1%" nowrap="nowrap">
<label class="oe_form_label"><t t-esc="field.string"/>:</label>
<label class="oe_label"><t t-esc="field.string"/>:</label>
</td>
<td t-foreach="widget.languages" t-as="lg" class="oe_form_frame_cell">
<input t-if="field.type == 'char'" type="text" t-attf-name="#{lg.code}-#{field.name}" value="" data-value="" class="oe_trad_field" style="width: 100%"/>
@ -726,7 +726,7 @@
</t>
<t t-name="WidgetLabel">
<label t-att-for="widget.element_id + '_field'"
t-att-class="'oe_form_label' + (widget.help ? '_help' : '')"
t-att-class="'oe_label' + (widget.help ? '_help' : '')"
t-att-title="widget.help">
<t t-esc="widget.string"/>
<span t-if="widget.help">?</span>
@ -1020,10 +1020,11 @@
><t t-raw="filter.render(defaults)"/></t
></span>
<t t-name="SearchView.field">
<label style="display: block" t-att-title="attrs.help"
<label t-att-class="'oe_label' + (attrs.help ? '_help' : '')"
t-att-title="attrs.help"
t-att-for="element_id">
<t t-esc="attrs.string || attrs.name"/>
<span t-if="attrs.help">(?)</span>
<span t-if="attrs.help">?</span>
</label>
<div style="white-space: nowrap;">
<input type="text" size="15" t-att-name="attrs.name"