diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-03-04 22:11:57 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-03-04 22:11:57 +0100 |
commit | 07dee24cb29bd6fd49e26094b28d6506eaf3e96c (patch) | |
tree | 9cf2d567578830b7547164d0e1c2e017de25a8ff | |
parent | 5c061561c55b5adb6577c4ca2a2b4009b246db6d (diff) | |
download | nextcloud-server-07dee24cb29bd6fd49e26094b28d6506eaf3e96c.tar.gz nextcloud-server-07dee24cb29bd6fd49e26094b28d6506eaf3e96c.zip |
explicitly add empty placeholder to inputs which use infield labels, fix #2049
-rw-r--r-- | apps/files_sharing/templates/authenticate.php | 4 | ||||
-rw-r--r-- | core/lostpassword/templates/lostpassword.php | 2 | ||||
-rw-r--r-- | core/templates/installation.php | 14 | ||||
-rw-r--r-- | core/templates/login.php | 4 |
4 files changed, 12 insertions, 12 deletions
diff --git a/apps/files_sharing/templates/authenticate.php b/apps/files_sharing/templates/authenticate.php index b6ef82da6f0..7a67b6e5503 100644 --- a/apps/files_sharing/templates/authenticate.php +++ b/apps/files_sharing/templates/authenticate.php @@ -2,8 +2,8 @@ <fieldset> <p class="infield"> <label for="password" class="infield"><?php p($l->t('Password')); ?></label> - <input type="password" name="password" id="password" value="" autofocus /> + <input type="password" name="password" id="password" placeholder="" value="" autofocus /> <input type="submit" value="<?php p($l->t('Submit')); ?>" /> </p> </fieldset> -</form>
\ No newline at end of file +</form> diff --git a/core/lostpassword/templates/lostpassword.php b/core/lostpassword/templates/lostpassword.php index 55c070f3e0c..dc9f0bc8ad3 100644 --- a/core/lostpassword/templates/lostpassword.php +++ b/core/lostpassword/templates/lostpassword.php @@ -9,7 +9,7 @@ <?php endif; ?> <p class="infield"> <label for="user" class="infield"><?php echo $l->t( 'Username' ); ?></label> - <input type="text" name="user" id="user" value="" autocomplete="off" required autofocus /> + <input type="text" name="user" id="user" placeholder="" value="" autocomplete="off" required autofocus /> </p> <input type="submit" id="submit" value="<?php echo $l->t('Request reset'); ?>" /> <?php endif; ?> diff --git a/core/templates/installation.php b/core/templates/installation.php index 33b01853fb8..842686932c7 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -36,13 +36,13 @@ <fieldset id="adminaccount"> <legend><?php print_unescaped($l->t( 'Create an <strong>admin account</strong>' )); ?></legend> <p class="infield grouptop"> - <input type="text" name="adminlogin" id="adminlogin" + <input type="text" name="adminlogin" id="adminlogin" placeholder="" value="<?php p(OC_Helper::init_var('adminlogin')); ?>" autocomplete="off" autofocus required /> <label for="adminlogin" class="infield"><?php p($l->t( 'Username' )); ?></label> <img class="svg" src="<?php p(image_path('', 'actions/user.svg')); ?>" alt="" /> </p> <p class="infield groupbottom"> - <input type="password" name="adminpass" data-typetoggle="#show" id="adminpass" + <input type="password" name="adminpass" data-typetoggle="#show" id="adminpass" placeholder="" value="<?php p(OC_Helper::init_var('adminpass')); ?>" /> <label for="adminpass" class="infield"><?php p($l->t( 'Password' )); ?></label> <img class="svg" id="adminpass-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt="" /> @@ -127,17 +127,17 @@ <div id="use_other_db"> <p class="infield grouptop"> <label for="dbuser" class="infield"><?php p($l->t( 'Database user' )); ?></label> - <input type="text" name="dbuser" id="dbuser" + <input type="text" name="dbuser" id="dbuser" placeholder="" value="<?php p(OC_Helper::init_var('dbuser')); ?>" autocomplete="off" /> </p> <p class="infield groupmiddle"> <label for="dbpass" class="infield"><?php p($l->t( 'Database password' )); ?></label> - <input type="password" name="dbpass" id="dbpass" + <input type="password" name="dbpass" id="dbpass" placeholder="" value="<?php p(OC_Helper::init_var('dbpass')); ?>" /> </p> <p class="infield groupmiddle"> <label for="dbname" class="infield"><?php p($l->t( 'Database name' )); ?></label> - <input type="text" name="dbname" id="dbname" + <input type="text" name="dbname" id="dbname" placeholder="" value="<?php p(OC_Helper::init_var('dbname')); ?>" autocomplete="off" pattern="[0-9a-zA-Z$_-]+" /> </p> @@ -147,14 +147,14 @@ <div id="use_oracle_db"> <p class="infield groupmiddle"> <label for="dbtablespace" class="infield"><?php p($l->t( 'Database tablespace' )); ?></label> - <input type="text" name="dbtablespace" id="dbtablespace" + <input type="text" name="dbtablespace" id="dbtablespace" placeholder="" value="<?php p(OC_Helper::init_var('dbtablespace')); ?>" autocomplete="off" /> </p> </div> <?php endif; ?> <p class="infield groupbottom"> <label for="dbhost" class="infield" id="dbhostlabel"><?php p($l->t( 'Database host' )); ?></label> - <input type="text" name="dbhost" id="dbhost" + <input type="text" name="dbhost" id="dbhost" placeholder="" value="<?php p(OC_Helper::init_var('dbhost', 'localhost')); ?>" /> </p> </fieldset> diff --git a/core/templates/login.php b/core/templates/login.php index 463b951c80f..2c9884f5246 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -22,7 +22,7 @@ <?php endif; ?> </ul> <p class="infield grouptop"> - <input type="text" name="user" id="user" + <input type="text" name="user" id="user" placeholder="" value="<?php p($_['username']); ?>"<?php p($_['user_autofocus'] ? ' autofocus' : ''); ?> autocomplete="on" required/> <label for="user" class="infield"><?php p($l->t('Username')); ?></label> @@ -30,7 +30,7 @@ </p> <p class="infield groupbottom"> - <input type="password" name="password" id="password" value="" data-typetoggle="#show" + <input type="password" name="password" id="password" value="" data-typetoggle="#show" placeholder="" required<?php p($_['user_autofocus'] ? '' : ' autofocus'); ?> /> <label for="password" class="infield"><?php p($l->t('Password')); ?></label> <img class="svg" id="password-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt=""/> |