Allow to create group and its contest on UI
This commit is contained in:
parent
196e2a9bb0
commit
67ef6b9111
28 changed files with 1029 additions and 556 deletions
20
templates/widgets/datetimepicker.html
Normal file
20
templates/widgets/datetimepicker.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<input
|
||||
type="{{ widget.type }}"
|
||||
name="{{ widget.name }}"
|
||||
{% if widget.value != None %}
|
||||
value="{{ widget.value }}"
|
||||
{% endif %}
|
||||
{% for name, value in widget.attrs.items() %}
|
||||
{% if value %}
|
||||
{{ name }}{% if not value %}="{{ value }}"{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
/>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$("input[name='{{ widget.name }}']").datetimepicker({
|
||||
format: 'Y-m-d H:i:s',
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue