Commit abf688b3 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Android compat fixes of form inputs

parent 23f8adb4
......@@ -13,7 +13,8 @@ function login_form() {
$form->setAction('login');
$form->addText('username', _('Username'))
->setRequired();
->setRequired()
->setAttribute('autocapitalize', 'off');
$form->addPassword('password', _('Password'))
->setRequired();
$form->addCheckbox('remember', _('Remember me'));
......
......@@ -19,6 +19,7 @@ function registration_form() {
$form->addText('username', _('Username'))
->setRequired()
->setAttribute('autocapitalize', 'off')
->addRule(Form::MIN_LENGTH, null, 3)
->addRule(Form::MAX_LENGTH, null, 100)
->addRule(Form::PATTERN, _('Username may not contain whitespace or special characters'), '([a-zA-Z0-9-_])+')
......
......@@ -34,7 +34,7 @@
<th class="separator">{$i + 1}</th>
<td n:foreach="$row as $j => $arrow" data-score="{$arrow}"
class="{$j == $match->arrows - 1 ? separator}">
<input type="number" name="scores[]" min="0" max="10"
<input type="number" name="scores[]" min="0" max="10" pattern="[0-9]*"
value="{$arrow ? $arrow}">
<input type="hidden" name="crosses[]"
value="{$crosses[$i][$j]}">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment