mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Add pattern to number field to only allow for numbers
This commit is contained in:
parent
a19cd6f76b
commit
67437098cb
@ -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 ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user