[FIX] survey: replace the native datetimepicker by an Odoo-styled BS one

Commit: a034a17d37
with a starking lack of foresight, erroneously put a native input date.
It wrongly assumed that the text input was a text input instead of a BS
datetimepicker, which was broken when upgrading BS3 to BS4.
Which means that it wasn't styled as the rest as Odoo, as well as not being
configurable, not working on some browsers, and subject to locale errors.

We fix the DOM so that the BS datetimepicker is correctly applied.

Related to 9a6cd4e41dda56c4f454ed898ed17adad0d8556f

closes odoo/odoo#28135
This commit is contained in:
len-odoo
2018-10-25 08:19:22 +00:00
parent f0a7d69dcf
commit 46f48c35a0
+7 -2
View File
@@ -237,8 +237,13 @@
</template>
<template id="date" name="Date box">
<div class='input-group date'>
<input type="date" class="form-control" t-att-name="prefix"/>
<div class="form-group">
<div class="input-group date" id="datetimepicker" data-target-input="nearest">
<input type="text" class="form-control datetimepicker-input" data-target="#datetimepicker" t-att-name="prefix"/>
<div class="input-group-append" data-target="#datetimepicker" data-toggle="datetimepicker">
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
</div>
</div>
</div>
</template>