Merge pull request #1306 from Flynsarmy/numberPattern

Allow overriding number field pattern attribute
This commit is contained in:
Samuel Georges 2015-07-25 15:28:46 +10:00
commit 93f7b7800b
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
placeholder="<?= e(trans($field->placeholder)) ?>"
class="form-control"
autocomplete="off"
pattern="-?\d+(\.\d+)?"
<?= $field->hasAttribute('pattern') ? '' : 'pattern="-?\d+(\.\d+)?"' ?>
<?= $field->hasAttribute('maxlength') ? '' : 'maxlength="255"' ?>
<?= $field->getAttributes() ?>
/>