do not autocapitalize fields on mobile, fix user name input. Also disable autocorrect and specify autocomplete
This commit is contained in:
parent
323cc1166b
commit
dafa8fc37e
|
@ -48,13 +48,15 @@
|
||||||
<legend><?php print_unescaped($l->t( 'Create an <strong>admin account</strong>' )); ?></legend>
|
<legend><?php print_unescaped($l->t( 'Create an <strong>admin account</strong>' )); ?></legend>
|
||||||
<p class="infield grouptop">
|
<p class="infield grouptop">
|
||||||
<input type="text" name="adminlogin" id="adminlogin" placeholder=""
|
<input type="text" name="adminlogin" id="adminlogin" placeholder=""
|
||||||
value="<?php p($_['adminlogin']); ?>" autocomplete="off" autofocus required />
|
value="<?php p($_['adminlogin']); ?>"
|
||||||
|
autocomplete="off" autocapitalize="off" autocorrect="off" autofocus required />
|
||||||
<label for="adminlogin" class="infield"><?php p($l->t( 'Username' )); ?></label>
|
<label for="adminlogin" class="infield"><?php p($l->t( 'Username' )); ?></label>
|
||||||
<img class="svg" src="<?php p(image_path('', 'actions/user.svg')); ?>" alt="" />
|
<img class="svg" src="<?php p(image_path('', 'actions/user.svg')); ?>" alt="" />
|
||||||
</p>
|
</p>
|
||||||
<p class="infield groupbottom">
|
<p class="infield groupbottom">
|
||||||
<input type="password" name="adminpass" data-typetoggle="#show" id="adminpass" placeholder=""
|
<input type="password" name="adminpass" data-typetoggle="#show" id="adminpass" placeholder=""
|
||||||
value="<?php p($_['adminpass']); ?>" required />
|
value="<?php p($_['adminpass']); ?>"
|
||||||
|
autocomplete="off" autocapitalize="off" autocorrect="off" required />
|
||||||
<label for="adminpass" class="infield"><?php p($l->t( 'Password' )); ?></label>
|
<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="" />
|
<img class="svg" id="adminpass-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt="" />
|
||||||
<input type="checkbox" id="show" name="show" />
|
<input type="checkbox" id="show" name="show" />
|
||||||
|
@ -74,8 +76,9 @@
|
||||||
<div id="datadirContent">
|
<div id="datadirContent">
|
||||||
<label for="directory"><?php p($l->t( 'Data folder' )); ?></label>
|
<label for="directory"><?php p($l->t( 'Data folder' )); ?></label>
|
||||||
<input type="text" name="directory" id="directory"
|
<input type="text" name="directory" id="directory"
|
||||||
placeholder="<?php p(OC::$SERVERROOT."/data"); ?>"
|
placeholder="<?php p(OC::$SERVERROOT.'/data'); ?>"
|
||||||
value="<?php p($_['directory']); ?>" />
|
value="<?php p($_['directory']); ?>"
|
||||||
|
autocomplete="off" autocapitalize="off" autocorrect="off" />
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -103,11 +106,13 @@
|
||||||
<p class="infield grouptop">
|
<p class="infield grouptop">
|
||||||
<label for="dbuser" class="infield"><?php p($l->t( 'Database user' )); ?></label>
|
<label for="dbuser" class="infield"><?php p($l->t( 'Database user' )); ?></label>
|
||||||
<input type="text" name="dbuser" id="dbuser" placeholder=""
|
<input type="text" name="dbuser" id="dbuser" placeholder=""
|
||||||
value="<?php p($_['dbuser']); ?>" autocomplete="off" />
|
value="<?php p($_['dbuser']); ?>"
|
||||||
|
autocomplete="off" autocapitalize="off" autocorrect="off" />
|
||||||
</p>
|
</p>
|
||||||
<p class="infield groupmiddle">
|
<p class="infield groupmiddle">
|
||||||
<input type="password" name="dbpass" id="dbpass" placeholder="" data-typetoggle="#dbpassword"
|
<input type="password" name="dbpass" id="dbpass" placeholder="" data-typetoggle="#dbpassword"
|
||||||
value="<?php p($_['dbpass']); ?>" />
|
value="<?php p($_['dbpass']); ?>"
|
||||||
|
autocomplete="off" autocapitalize="off" autocorrect="off" />
|
||||||
<label for="dbpass" class="infield"><?php p($l->t( 'Database password' )); ?></label>
|
<label for="dbpass" class="infield"><?php p($l->t( 'Database password' )); ?></label>
|
||||||
<input type="checkbox" id="dbpassword" name="dbpassword" />
|
<input type="checkbox" id="dbpassword" name="dbpassword" />
|
||||||
<label for="dbpassword"></label>
|
<label for="dbpassword"></label>
|
||||||
|
@ -116,21 +121,24 @@
|
||||||
<label for="dbname" class="infield"><?php p($l->t( 'Database name' )); ?></label>
|
<label for="dbname" class="infield"><?php p($l->t( 'Database name' )); ?></label>
|
||||||
<input type="text" name="dbname" id="dbname" placeholder=""
|
<input type="text" name="dbname" id="dbname" placeholder=""
|
||||||
value="<?php p($_['dbname']); ?>"
|
value="<?php p($_['dbname']); ?>"
|
||||||
autocomplete="off" pattern="[0-9a-zA-Z$_-]+" />
|
autocomplete="off" autocapitalize="off" autocorrect="off"
|
||||||
|
pattern="[0-9a-zA-Z$_-]+" />
|
||||||
</p>
|
</p>
|
||||||
<?php if($_['hasOracle']): ?>
|
<?php if($_['hasOracle']): ?>
|
||||||
<div id="use_oracle_db">
|
<div id="use_oracle_db">
|
||||||
<p class="infield groupmiddle">
|
<p class="infield groupmiddle">
|
||||||
<label for="dbtablespace" class="infield"><?php p($l->t( 'Database tablespace' )); ?></label>
|
<label for="dbtablespace" class="infield"><?php p($l->t( 'Database tablespace' )); ?></label>
|
||||||
<input type="text" name="dbtablespace" id="dbtablespace" placeholder=""
|
<input type="text" name="dbtablespace" id="dbtablespace" placeholder=""
|
||||||
value="<?php p($_['dbtablespace']); ?>" autocomplete="off" />
|
value="<?php p($_['dbtablespace']); ?>"
|
||||||
|
autocomplete="off" autocapitalize="off" autocorrect="off" />
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<p class="infield groupbottom">
|
<p class="infield groupbottom">
|
||||||
<label for="dbhost" class="infield"><?php p($l->t( 'Database host' )); ?></label>
|
<label for="dbhost" class="infield"><?php p($l->t( 'Database host' )); ?></label>
|
||||||
<input type="text" name="dbhost" id="dbhost" placeholder=""
|
<input type="text" name="dbhost" id="dbhost" placeholder=""
|
||||||
value="<?php p($_['dbhost']); ?>" />
|
value="<?php p($_['dbhost']); ?>"
|
||||||
|
autocomplete="off" autocapitalize="off" autocorrect="off" />
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -26,15 +26,17 @@
|
||||||
</p>
|
</p>
|
||||||
<p class="infield grouptop">
|
<p class="infield grouptop">
|
||||||
<input type="text" name="user" id="user" placeholder=""
|
<input type="text" name="user" id="user" placeholder=""
|
||||||
value="<?php p($_['username']); ?>"<?php p($_['user_autofocus'] ? ' autofocus' : ''); ?>
|
value="<?php p($_['username']); ?>"
|
||||||
autocomplete="on" required/>
|
<?php p($_['user_autofocus'] ? 'autofocus' : ''); ?>
|
||||||
|
autocomplete="on" autocapitalize="off" autocorrect="off" required />
|
||||||
<label for="user" class="infield"><?php p($l->t('Username')); ?></label>
|
<label for="user" class="infield"><?php p($l->t('Username')); ?></label>
|
||||||
<img class="svg" src="<?php print_unescaped(image_path('', 'actions/user.svg')); ?>" alt=""/>
|
<img class="svg" src="<?php print_unescaped(image_path('', 'actions/user.svg')); ?>" alt=""/>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="infield groupbottom">
|
<p class="infield groupbottom">
|
||||||
<input type="password" name="password" id="password" value="" placeholder=""
|
<input type="password" name="password" id="password" value="" placeholder=""
|
||||||
required<?php p($_['user_autofocus'] ? '' : ' autofocus'); ?> />
|
<?php p($_['user_autofocus'] ? '' : 'autofocus'); ?>
|
||||||
|
autocomplete="on" autocapitalize="off" autocorrect="off" required />
|
||||||
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>
|
<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=""/>
|
<img class="svg" id="password-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt=""/>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -40,10 +40,12 @@ if($_['passwordChangeSupported']) {
|
||||||
<div id="passwordchanged"><?php echo $l->t('Your password was changed');?></div>
|
<div id="passwordchanged"><?php echo $l->t('Your password was changed');?></div>
|
||||||
<div id="passworderror"><?php echo $l->t('Unable to change your password');?></div>
|
<div id="passworderror"><?php echo $l->t('Unable to change your password');?></div>
|
||||||
<input type="password" id="pass1" name="oldpassword"
|
<input type="password" id="pass1" name="oldpassword"
|
||||||
placeholder="<?php echo $l->t('Current password');?>" autocomplete="off" />
|
placeholder="<?php echo $l->t('Current password');?>"
|
||||||
|
autocomplete="off" autocapitalize="off" autocorrect="off" />
|
||||||
<input type="password" id="pass2" name="personal-password"
|
<input type="password" id="pass2" name="personal-password"
|
||||||
placeholder="<?php echo $l->t('New password');?>"
|
placeholder="<?php echo $l->t('New password');?>"
|
||||||
data-typetoggle="#personal-show" autocomplete="off" />
|
data-typetoggle="#personal-show"
|
||||||
|
autocomplete="off" autocapitalize="off" autocorrect="off" />
|
||||||
<input type="checkbox" id="personal-show" name="show" /><label for="personal-show"></label>
|
<input type="checkbox" id="personal-show" name="show" /><label for="personal-show"></label>
|
||||||
<input id="passwordbutton" type="submit" value="<?php echo $l->t('Change password');?>" />
|
<input id="passwordbutton" type="submit" value="<?php echo $l->t('Change password');?>" />
|
||||||
<br/>
|
<br/>
|
||||||
|
@ -60,7 +62,9 @@ if($_['displayNameChangeSupported']) {
|
||||||
<form id="displaynameform">
|
<form id="displaynameform">
|
||||||
<fieldset class="personalblock">
|
<fieldset class="personalblock">
|
||||||
<h2><?php echo $l->t('Full Name');?></h2>
|
<h2><?php echo $l->t('Full Name');?></h2>
|
||||||
<input type="text" id="displayName" name="displayName" value="<?php p($_['displayName'])?>" />
|
<input type="text" id="displayName" name="displayName"
|
||||||
|
value="<?php p($_['displayName'])?>"
|
||||||
|
autocomplete="on" autocapitalize="off" autocorrect="off" />
|
||||||
<span class="msg"></span>
|
<span class="msg"></span>
|
||||||
<input type="hidden" id="oldDisplayName" name="oldDisplayName" value="<?php p($_['displayName'])?>" />
|
<input type="hidden" id="oldDisplayName" name="oldDisplayName" value="<?php p($_['displayName'])?>" />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
@ -76,7 +80,9 @@ if($_['passwordChangeSupported']) {
|
||||||
<fieldset class="personalblock">
|
<fieldset class="personalblock">
|
||||||
<h2><?php p($l->t('Email'));?></h2>
|
<h2><?php p($l->t('Email'));?></h2>
|
||||||
<input type="text" name="email" id="email" value="<?php p($_['email']); ?>"
|
<input type="text" name="email" id="email" value="<?php p($_['email']); ?>"
|
||||||
placeholder="<?php p($l->t('Your email address'));?>" /><span class="msg"></span><br />
|
placeholder="<?php p($l->t('Your email address'));?>"
|
||||||
|
autocomplete="on" autocapitalize="off" autocorrect="off" />
|
||||||
|
<span class="msg"></span><br />
|
||||||
<em><?php p($l->t('Fill in an email address to enable password recovery'));?></em>
|
<em><?php p($l->t('Fill in an email address to enable password recovery'));?></em>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue