From dafa8fc37eeaadf602605645601be82f57237a1d Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 18 Feb 2014 10:58:00 +0100 Subject: [PATCH] do not autocapitalize fields on mobile, fix user name input. Also disable autocorrect and specify autocomplete --- core/templates/installation.php | 26 +++++++++++++++++--------- core/templates/login.php | 8 +++++--- settings/templates/personal.php | 14 ++++++++++---- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/core/templates/installation.php b/core/templates/installation.php index 9670a5e9ee5..d3adb34f412 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -48,13 +48,15 @@ t( 'Create an admin account' )); ?>

+ value="" + autocomplete="off" autocapitalize="off" autocorrect="off" autofocus required />

+ value="" + autocomplete="off" autocapitalize="off" autocorrect="off" required /> @@ -74,8 +76,9 @@

" - value="" /> + placeholder="" + value="" + autocomplete="off" autocapitalize="off" autocorrect="off" />
@@ -103,11 +106,13 @@

+ value="" + autocomplete="off" autocapitalize="off" autocorrect="off" />

+ value="" + autocomplete="off" autocapitalize="off" autocorrect="off" /> @@ -116,21 +121,24 @@ + autocomplete="off" autocapitalize="off" autocorrect="off" + pattern="[0-9a-zA-Z$_-]+" />

+ value="" + autocomplete="off" autocapitalize="off" autocorrect="off" />

+ value="" + autocomplete="off" autocapitalize="off" autocorrect="off" />

diff --git a/core/templates/login.php b/core/templates/login.php index e697ebe5326..b534e1edea5 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -26,15 +26,17 @@

- autocomplete="on" required/> + value="" + + autocomplete="on" autocapitalize="off" autocorrect="off" required />

/> + + autocomplete="on" autocapitalize="off" autocorrect="off" required />

diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 31ae3a991b6..188ff75f96b 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -40,10 +40,12 @@ if($_['passwordChangeSupported']) {
t('Your password was changed');?>
t('Unable to change your password');?>
+ placeholder="t('Current password');?>" + autocomplete="off" autocapitalize="off" autocorrect="off" /> + data-typetoggle="#personal-show" + autocomplete="off" autocapitalize="off" autocorrect="off" />
@@ -60,7 +62,9 @@ if($_['displayNameChangeSupported']) {

t('Full Name');?>

- +
@@ -76,7 +80,9 @@ if($_['passwordChangeSupported']) {

t('Email'));?>


+ placeholder="t('Your email address'));?>" + autocomplete="on" autocapitalize="off" autocorrect="off" /> +
t('Fill in an email address to enable password recovery'));?>