Last active
October 26, 2020 08:13
-
-
Save xubiuit/0a934e5eb38eb5ef292ab731fef50ef3 to your computer and use it in GitHub Desktop.
[howto] Add a datetimepicker in Odoo website
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="form-group"> | |
<div class="input-group datetime" | |
id="datetimepickerID" | |
data-target-input="nearest"> | |
<input type="text" | |
class="form-control datetimepicker-input" | |
data-target="#datetimepickerID" | |
name="my_datetimepicker"/> | |
<div class="input-group-append" | |
data-target="#datetimepickerID" | |
data-toggle="datetimepicker"> | |
<div class="input-group-text"><i class="fa fa-calendar"></i></div> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
$(function () { | |
$('#datetimepickerID').datetimepicker(); | |
}); | |
</script> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment