Merge pull request #443 from jbh-/hotfix/NumberFieldValidation

Add pattern to number field to only allow for numbers
This commit is contained in:
Samuel Georges 2014-07-19 09:14:35 +10:00
commit 9f1b0415aa

View File

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