mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Set a max date attribute for date input fields to prevent/discourage them going over 4 characters (client side validation)
This commit is contained in:
@@ -11,12 +11,12 @@
|
||||
<div class="modal-body bg-white">
|
||||
<div class="form-group">
|
||||
<label>Date From</label>
|
||||
<input type="date" class="form-control" name="date_from" value="<?php echo $dtf; ?>">
|
||||
<input type="date" class="form-control" name="date_from" max="2999-12-31" value="<?php echo $dtf; ?>">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Date To</label>
|
||||
<input type="date" class="form-control" name="date_to" value="<?php echo $dtt; ?>">
|
||||
<input type="date" class="form-control" name="date_to" max="2999-12-31" value="<?php echo $dtt; ?>">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user