first commit
This commit is contained in:
17
Movement/templates/Calendar/Create/time.html
Normal file
17
Movement/templates/Calendar/Create/time.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class=""> Time </div>
|
||||
<div class="form-group">
|
||||
<label>
|
||||
<input type="time" name="time" id="id_time"
|
||||
{# value="{{ form.time.field.queryset }}"#}
|
||||
class="form-control"
|
||||
>
|
||||
</label>
|
||||
</div> <br>
|
||||
|
||||
<script>
|
||||
const timeInput = document.getElementById("id_time");
|
||||
const now = new Date();
|
||||
const hours = String(now.getHours()).padStart(2, '0');
|
||||
const minutes = String(now.getMinutes()).padStart(2, '0');
|
||||
timeInput.value = `${hours}:${minutes}`;
|
||||
</script>
|
||||
Reference in New Issue
Block a user