summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2011-09-21 13:50:54 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2011-09-21 13:50:54 +0200
commit7d65aca16785ca06898ffd644b5f8a1f2dfd1568 (patch)
treed795c23f531bdee50bdb7a0f09cb6db5c332b7b6 /addons/web/static/src/xml/base.xml
parent8df96caa72fc55820f85bbd7a2055a36624020ac (diff)
[imp] used datetime widget in search view
bzr revid: nicolas.vanhoren@openerp.com-20110921115054-mgd5ts19sk1olvgu
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml15
1 files changed, 13 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index d2b2f618eec..afec46fe6ad 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -801,8 +801,7 @@
<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"/>
</t>
<t t-name="web.datetimepicker">
- <!-- t-att-class="'field_' + widget.type"-->
- <div>
+ <div class="oe_datepicker">
<input type="text" size="1" style="width: 100%"/>
<img class="oe_input_icon oe_datepicker_trigger" src="/web/static/src/img/ui/field_calendar.png"
title="Select date" width="16" height="16" border="0"/>
@@ -1054,6 +1053,18 @@
<t t-if="filters.length" t-raw="filters.render(defaults)"/>
</div>
</t>
+<t t-name="SearchView.date">
+ <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>
+ </label>
+ <div style="white-space: nowrap;">
+ <span t-att-id="element_id"></span>
+ <t t-if="filters.length" t-raw="filters.render(defaults)"/>
+ </div>
+</t>
<t t-name="SearchView.field.selection">
<label t-att-title="attrs.help"
t-att-class="'oe_label' + (attrs.help ? '_help' : '')"