Added pattern checking for deadline

master
Davide Bongiovanni 6 years ago
parent baeed56490
commit f20243b247

@ -39,7 +39,7 @@
<input type="text" name="flavor_text" id="flavor-text">
<h3>Can join until</h3>
<div class="sub-flex" id="deadline">
<input type="text" name="deadline-amount" id="deadline-amount" pattern="[0-9]+">
<input type="text" name="deadline-amount" id="deadline-amount" pattern="^\d+(\.\d+)?$">
<select id="deadline-unit">
<option value="m">Minutes</option>
<option value="h" selected>Hours</option>

Loading…
Cancel
Save