From ac890df4dddaf76eb3951d4fe7bbfbbf0edcb8df Mon Sep 17 00:00:00 2001 From: Alexander Meshcheryakov Date: Fri, 13 Oct 2017 21:36:10 +0300 Subject: [PATCH] Mark input fields in question form as numbers Especially useful for playing with mobile browsers. Should auto choose numeric keyboard on selecting field. --- views/site/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/views/site/index.php b/views/site/index.php index 48386dd..f6b400d 100644 --- a/views/site/index.php +++ b/views/site/index.php @@ -32,22 +32,22 @@
- field($answer, 'ninetyStart')->textInput(['pattern' => '[0-9 ]+', 'class' => 'form-control commas-input', 'autocomplete' => 'off'])?> + field($answer, 'ninetyStart')->textInput(['pattern' => '[0-9 ]+', 'class' => 'form-control commas-input', 'autocomplete' => 'off', 'type' => 'number'])?>
- field($answer, 'ninetyEnd')->textInput(['pattern' => '[0-9 ]+', 'class' => 'form-control commas-input', 'autocomplete' => 'off'])?> + field($answer, 'ninetyEnd')->textInput(['pattern' => '[0-9 ]+', 'class' => 'form-control commas-input', 'autocomplete' => 'off', 'type' => 'number'])?>
- field($answer, 'fiftyStart')->textInput(['pattern' => '[0-9 ]+', 'class' => 'form-control commas-input', 'autocomplete' => 'off'])?> + field($answer, 'fiftyStart')->textInput(['pattern' => '[0-9 ]+', 'class' => 'form-control commas-input', 'autocomplete' => 'off', 'type' => 'number'])?>
- field($answer, 'fiftyEnd')->textInput(['pattern' => '[0-9 ]+', 'class' => 'form-control commas-input', 'autocomplete' => 'off'])?> + field($answer, 'fiftyEnd')->textInput(['pattern' => '[0-9 ]+', 'class' => 'form-control commas-input', 'autocomplete' => 'off', 'type' => 'number'])?>