Add pattern to number field to only allow for numbers

This commit is contained in:
Josh Hall 2014-07-17 16:07:29 -05:00
parent a19cd6f76b
commit 67437098cb

View File

@ -11,6 +11,7 @@
class="form-control" class="form-control"
autocomplete="off" autocomplete="off"
maxlength="255" maxlength="255"
pattern="\d+"
<?= HTML::attributes($field->attributes) ?> <?= HTML::attributes($field->attributes) ?>
/> />
<?php endif ?> <?php endif ?>