diff options
| author | Fabien Meghazi <fme@openerp.com> | 2012-06-04 11:32:39 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2012-06-04 11:32:39 +0200 |
| commit | d69df82d0160fd5ae9e13f6cb8b047aec01e37e3 (patch) | |
| tree | 0ecdbd4cb1ae197bbb798b4877c49040e9ea6093 /addons/web/static/src/xml | |
| parent | 6c8e451eadc1ca9405f6294784f5a522222a4f62 (diff) | |
[FIX] Fix date fields widgets
bzr revid: fme@openerp.com-20120604093239-szs3brw3ioyg3dr0
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index eff32200f50..152fd2249e0 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -935,28 +935,22 @@ </div> </t> <t t-name="web.datepicker"> - <t t-set="placeholder" t-value="widget.getParent().node and widget.getParent().node.attrs.placeholder"/> - <span class="oe_form_field oe_datepicker_root oe_form_field_date"> + <span> + <t t-set="placeholder" t-value="widget.getParent().node and widget.getParent().node.attrs.placeholder"/> <input type="text" class="oe_datepicker_container" disabled="disabled" style="display: none;"/> <input type="text" t-att-name="widget.name" t-att-placeholder="placeholder" - t-attf-class="oe_datepicker_master field_#{widget.type_of_date} oe_form_field_#{widget.type_of_date}" + class="oe_datepicker_master" /><img class="oe_input_icon oe_datepicker_trigger" t-att-src='_s + "/web/static/src/img/ui/field_calendar.png"' title="Select date" width="16" height="16" border="0"/> </span> </t> -<t t-name="web.datetimepicker"> - <t t-set="placeholder" t-value="widget.getParent().node and widget.getParent().node.attrs.placeholder"/> - <span class="oe_form_field oe_datepicker_root oe_form_field_datetime"> - <input type="text" class="oe_datepicker_container" disabled="disabled" style="display: none;"/> - <input type="text" - t-att-name="widget.name" - t-att-placeholder="placeholder" - t-attf-class="oe_datepicker_master field_#{widget.type_of_date} oe_form_field_#{widget.type_of_date}" - /><img class="oe_input_icon oe_datepicker_trigger" t-att-src='_s + "/web/static/src/img/ui/field_calendar.png"' - title="Select date" width="16" height="16" border="0"/> - </span> +<t t-name="FieldDate"> + <span class="oe_form_field oe_datepicker_root oe_form_field_date"/> +</t> +<t t-name="FieldDatetime"> + <span class="oe_form_field oe_datepicker_root oe_form_field_datetime"/> </t> <t t-name="FieldSelection"> <span class="oe_form_field oe_form_field_selection"> |
