[IMP] Improved date widget styling

bzr revid: fme@openerp.com-20110404090047-yvmbfnnt910b553n
This commit is contained in:
Fabien Meghazi 2011-04-04 11:00:47 +02:00
parent 1c07f1dd53
commit 3cc735cc2c
2 changed files with 6 additions and 2 deletions

View File

@ -420,6 +420,10 @@ body.openerp {
}
.openerp input.field_date {
background: url('../img/ui/field_calendar.png') no-repeat right center;
background-origin: content-box;
-moz-background-origin: content;
-moz-background-origin: content-box;
-webkit-background-origin: content-box;
}
/* Widgets */

View File

@ -326,10 +326,10 @@
<span t-if="attrs.help">(?)</span>
</label>
<div style="white-space: nowrap;" t-att-id="element_id">
<input t-att-name="attrs.name" class="field_date"
<input t-att-name="attrs.name" type="text" class="field_date"
t-att-value="defaults[attrs.name] || ''"/>
to
<input t-att-name="attrs.name" class="field_date"
<input t-att-name="attrs.name" type="text" class="field_date"
t-att-value="defaults[attrs.name] || ''"/>
<t t-if="filters.length" t-raw="filters.render(defaults)"/>
</div>