mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +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:
@@ -19,7 +19,7 @@
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
|
||||
</div>
|
||||
<input type="date" class="form-control" name="date" value="<?php echo date("Y-m-d"); ?>" required>
|
||||
<input type="date" class="form-control" name="date" max="2999-12-31" value="<?php echo date("Y-m-d"); ?>" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user