mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-08-19 21:53:41 +00:00
Avec le name ça marche mieux
This commit is contained in:
parent
838c5999b1
commit
5757a1e911
2 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
<script src="/javascript/jquery-timepicker/jquery-ui-timepicker-addon.js"></script>
|
||||
<link href="/javascript/jquery-ui/css/smoothness/jquery-ui.min.css" rel="stylesheet"/>
|
||||
<link href="/javascript/jquery-timepicker/jquery-ui-timepicker-addon.css" rel="stylesheet"/>
|
||||
<input {{attrs}} name="datetimepicker" type="text" class="form-control" placeholder="Date"/>
|
||||
<input {{attrs}} name="{{name}}" type="text" class="form-control" placeholder="Date"/>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("#{{id}}").datetimepicker({
|
||||
|
|
|
@ -29,6 +29,7 @@ class DateTimePicker(Input):
|
|||
super().render(name, value, attrs)
|
||||
flat_attrs = flatatt(attrs)
|
||||
context = Context({
|
||||
'name': name,
|
||||
'attrs': flat_attrs,
|
||||
'id': attrs['id'],
|
||||
'closeText': _("Close"),
|
||||
|
|
Loading…
Reference in a new issue