10 lines
553 B
HTML
10 lines
553 B
HTML
<span class="datetime">
|
|
{% with widget=widget.subwidgets.0 %}
|
|
<input type="date" name="{{ widget.name }}"{% if widget.value != None %} value="{{ widget.value }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />
|
|
{% endwith %}
|
|
{% with widget=widget.subwidgets.1 %}
|
|
<!-- {{ widget.value|pprint }} -->
|
|
<input type="time" name="{{ widget.name }}" pattern="[0-9]{2}:[0-9]{2}" step="300" {% if widget.value != None %} value="{{ widget.value }}"{% endif %}{% include "django/forms/widgets/attrs.html" %} />
|
|
{% endwith %}
|
|
</span>
|