Commit be70de6a authored by Matthew Dizon's avatar Matthew Dizon

updated date to datetime-local

parent dbe5d5cf
Pipeline #1932 canceled with stages
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<div class="form-group"> <div class="form-group">
<label for="name"> Date Created: </label> <label for="name"> Date Created: </label>
<input type="date" class="form-control" id="date" name="date" required> <input type="datetime-local" class="form-control" id="date" name="date" required>
</div> </div>
......
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
<div class="form-group"> <div class="form-group">
<label for="name"> Quantity: </label> <label for="name"> Quantity: </label>
<input type="number" class="form-control" id="qty" name="qty" value="{{order.qty}}" required> <input type="number" class="form-control" id="qty" name="qty" required>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="name"> Date of Order: </label> <label for="name"> Date of Order: </label>
<input type="date" class="form-control" id="date" name="date" value="{{order.ordered_at}}" required> <input type="datetime-local" class="form-control" id="date" name="date" required>
</div> </div>
<div class="form-group"> <div class="form-group">
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="name"> Date Created: </label> <label for="name"> Date Created: </label>
<input type="date" class="form-control" id="date" name="date" value="{{food.created_at}}" required> <input type="datetime-local" class="form-control" id="date" name="date" value="{{food.created_at}}" required>
</div> </div>
<a href="{% url 'update_food' food.pk %}"><button type="submit" class="mt-3 btn btn-primary">Update Food</button></a> <a href="{% url 'update_food' food.pk %}"><button type="submit" class="mt-3 btn btn-primary">Update Food</button></a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment