Merge pull request #443 from jbh-/hotfix/NumberFieldValidation
Add pattern to number field to only allow for numbers
This commit is contained in:
commit
9f1b0415aa
|
|
@ -11,6 +11,7 @@
|
|||
class="form-control"
|
||||
autocomplete="off"
|
||||
maxlength="255"
|
||||
pattern="\d+"
|
||||
<?= HTML::attributes($field->attributes) ?>
|
||||
/>
|
||||
<?php endif ?>
|
||||
<?php endif ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue