0.0.115 success set min datatime-local
This commit is contained in:
@@ -59,9 +59,11 @@
|
||||
<div>
|
||||
<label for="id_departure_DT">{{ form.fields.departure_DT.label }}</label>
|
||||
|
||||
{% now "Y-m-d H:i" %}
|
||||
|
||||
<input
|
||||
type="datetime-local"
|
||||
min= {{ now|date:"Y-m-d" }}T{{ now|date:"H:i" }}
|
||||
min="{% now "Y-m-d" %}T{% now "H:i" %}"
|
||||
name="departure_DT"
|
||||
{% if form.fields.departure_DT.required %} required{% endif %}
|
||||
id="id_departure_DT"
|
||||
@@ -78,6 +80,7 @@
|
||||
<label for="id_arrival_DT">{{ form.fields.arrival_DT.label }}</label>
|
||||
<input
|
||||
type="datetime-local"
|
||||
min="{% now "Y-m-d" %}T{% now "H:i" %}"
|
||||
name="arrival_DT"
|
||||
{% if form.fields.arrival_DT.required %} required{% endif %}
|
||||
id="id_arrival_DT"
|
||||
|
||||
Reference in New Issue
Block a user