]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix value of attribute "autocapitalize" 3915/head
authorMichael Letzgus <www@chronos.michael-letzgus.de>
Sat, 18 Mar 2017 15:00:21 +0000 (16:00 +0100)
committerMichael Letzgus <root@chronos.michael-letzgus.de>
Sat, 18 Mar 2017 15:06:57 +0000 (16:06 +0100)
Change <input> attribute "autocapitalize" from value "off" to "none" regarding to apples dev guide:

https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html#//apple_ref/doc/uid/TP40008058-autocapitalize

Signed-off-by: Michael Letzgus <michaelletzgus@users.noreply.github.com>
core/templates/installation.php
core/templates/login.php
settings/templates/personal.php
settings/templates/users/part.createuser.php

index 058049d894684ed96f48751b60d5dcc0ada195ca..6a0e3f938574f7418753ad3e969ac12d759f197d 100644 (file)
@@ -41,14 +41,14 @@ script('core', [
                        <input type="text" name="adminlogin" id="adminlogin"
                                placeholder="<?php p($l->t( 'Username' )); ?>"
                                value="<?php p($_['adminlogin']); ?>"
-                               autocomplete="off" autocapitalize="off" autocorrect="off" autofocus required>
+                               autocomplete="off" autocapitalize="none" autocorrect="off" autofocus required>
                        <label for="adminlogin" class="infield"><?php p($l->t( 'Username' )); ?></label>
                </p>
                <p class="groupbottom">
                        <input type="password" name="adminpass" data-typetoggle="#show" id="adminpass"
                                placeholder="<?php p($l->t( 'Password' )); ?>"
                                value="<?php p($_['adminpass']); ?>"
-                               autocomplete="off" autocapitalize="off" autocorrect="off" required>
+                               autocomplete="off" autocapitalize="none" autocorrect="off" required>
                        <label for="adminpass" class="infield"><?php p($l->t( 'Password' )); ?></label>
                        <input type="checkbox" id="show" name="show">
                        <label for="show"></label>
@@ -68,7 +68,7 @@ script('core', [
                        <input type="text" name="directory" id="directory"
                                placeholder="<?php p(OC::$SERVERROOT.'/data'); ?>"
                                value="<?php p($_['directory']); ?>"
-                               autocomplete="off" autocapitalize="off" autocorrect="off">
+                               autocomplete="off" autocapitalize="none" autocorrect="off">
                </div>
        </fieldset>
        <?php endif; ?>
@@ -105,13 +105,13 @@ script('core', [
                                <input type="text" name="dbuser" id="dbuser"
                                        placeholder="<?php p($l->t( 'Database user' )); ?>"
                                        value="<?php p($_['dbuser']); ?>"
-                                       autocomplete="off" autocapitalize="off" autocorrect="off">
+                                       autocomplete="off" autocapitalize="none" autocorrect="off">
                        </p>
                        <p class="groupmiddle">
                                <input type="password" name="dbpass" id="dbpass" data-typetoggle="#dbpassword-toggle"
                                        placeholder="<?php p($l->t( 'Database password' )); ?>"
                                        value="<?php p($_['dbpass']); ?>"
-                                       autocomplete="off" autocapitalize="off" autocorrect="off">
+                                       autocomplete="off" autocapitalize="none" autocorrect="off">
                                <label for="dbpass" class="infield"><?php p($l->t( 'Database password' )); ?></label>
                                <input type="checkbox" id="dbpassword-toggle" name="dbpassword-toggle">
                                <label for="dbpassword-toggle"></label>
@@ -121,7 +121,7 @@ script('core', [
                                <input type="text" name="dbname" id="dbname"
                                        placeholder="<?php p($l->t( 'Database name' )); ?>"
                                        value="<?php p($_['dbname']); ?>"
-                                       autocomplete="off" autocapitalize="off" autocorrect="off"
+                                       autocomplete="off" autocapitalize="none" autocorrect="off"
                                        pattern="[0-9a-zA-Z$_-]+">
                        </p>
                        <?php if($_['hasOracle']): ?>
@@ -131,7 +131,7 @@ script('core', [
                                        <input type="text" name="dbtablespace" id="dbtablespace"
                                                placeholder="<?php p($l->t( 'Database tablespace' )); ?>"
                                                value="<?php p($_['dbtablespace']); ?>"
-                                               autocomplete="off" autocapitalize="off" autocorrect="off">
+                                               autocomplete="off" autocapitalize="none" autocorrect="off">
                                </p>
                        </div>
                        <?php endif; ?>
@@ -140,7 +140,7 @@ script('core', [
                                <input type="text" name="dbhost" id="dbhost"
                                        placeholder="<?php p($l->t( 'Database host' )); ?>"
                                        value="<?php p($_['dbhost']); ?>"
-                                       autocomplete="off" autocapitalize="off" autocorrect="off">
+                                       autocomplete="off" autocapitalize="none" autocorrect="off">
                        </p>
                        <p class="info">
                                <?php p($l->t( 'Please specify the port number along with the host name (e.g., localhost:5432).' )); ?>
index 221242c0dcb78dab1d18da20295a71d3f4d254cc..352893bd0dc43da0e8a97cb15036d1a6d50ff1d2 100644 (file)
@@ -43,7 +43,7 @@ script('core', [
                                placeholder="<?php p($l->t('Username or email')); ?>"
                                value="<?php p($_['loginName']); ?>"
                                <?php p($_['user_autofocus'] ? 'autofocus' : ''); ?>
-                               autocomplete="on" autocapitalize="off" autocorrect="off" required>
+                               autocomplete="on" autocapitalize="none" autocorrect="off" required>
                        <label for="user" class="infield"><?php p($l->t('Username or email')); ?></label>
                </p>
 
@@ -51,7 +51,7 @@ script('core', [
                        <input type="password" name="password" id="password" value=""
                                placeholder="<?php p($l->t('Password')); ?>"
                                <?php p($_['user_autofocus'] ? '' : 'autofocus'); ?>
-                               autocomplete="on" autocapitalize="off" autocorrect="off" required>
+                               autocomplete="on" autocapitalize="off" autocorrect="none" required>
                        <label for="password" class="infield"><?php p($l->t('Password')); ?></label>
                </p>
 
index 31aa268f77638c1b942bb08ffe10a0a080e970d7..c13672bcb7700e85c6b95b448520e60825526293 100644 (file)
@@ -76,7 +76,7 @@
                        <input type="text" id="displayname" name="displayname"
                                <?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
                                value="<?php p($_['displayName']) ?>"
-                               autocomplete="on" autocapitalize="off" autocorrect="off" />
+                               autocomplete="on" autocapitalize="none" autocorrect="off" />
                        <?php if(!$_['displayNameChangeSupported']) { ?>
                                <span><?php if(isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span>
                        <?php } ?>
@@ -93,7 +93,7 @@
                        <input type="email" name="email" id="email" value="<?php p($_['email']); ?>"
                                <?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?>
                                placeholder="<?php p($l->t('Your email address')); ?>"
-                               autocomplete="on" autocapitalize="off" autocorrect="off" />
+                               autocomplete="on" autocapitalize="none" autocorrect="off" />
                        <?php if(!$_['displayNameChangeSupported']) { ?>
                                <span><?php if(isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span>
                        <?php } ?>
                        <input type="tel" id="phone" name="phone"
                               value="<?php p($_['phone']) ?>"
                                   placeholder="<?php p($l->t('Your phone number')); ?>"
-                              autocomplete="on" autocapitalize="off" autocorrect="off" />
+                              autocomplete="on" autocapitalize="none" autocorrect="off" />
                        <span class="icon-checkmark hidden"/>
                        <input type="hidden" id="phonescope" value="<?php p($_['phoneScope']) ?>">
                </form>
                        <input type="text" id="address" name="address"
                                   placeholder="<?php p($l->t('Your postal address')); ?>"
                                   value="<?php p($_['address']) ?>"
-                                  autocomplete="on" autocapitalize="off" autocorrect="off" />
+                                  autocomplete="on" autocapitalize="none" autocorrect="off" />
                        <span class="icon-checkmark hidden"/>
                        <input type="hidden" id="addressscope" value="<?php p($_['addressScope']) ?>">
                </form>
                        </h2>
                        <input type="text" name="website" id="website" value="<?php p($_['website']); ?>"
                               placeholder="<?php p($l->t('Your website')); ?>"
-                              autocomplete="on" autocapitalize="off" autocorrect="off" />
+                              autocomplete="on" autocapitalize="none" autocorrect="off" />
                        <span class="icon-checkmark hidden"/>
                        <input type="hidden" id="websitescope" value="<?php p($_['websiteScope']) ?>">
                </form>
                        </h2>
                        <input type="text" name="twitter" id="twitter" value="<?php p($_['twitter']); ?>"
                                   placeholder="<?php p($l->t('Your Twitter handle')); ?>"
-                                  autocomplete="on" autocapitalize="off" autocorrect="off" />
+                                  autocomplete="on" autocapitalize="none" autocorrect="off" />
                        <span class="icon-checkmark hidden"/>
                        <input type="hidden" id="twitterscope" value="<?php p($_['twitterScope']) ?>">
                </form>
@@ -183,13 +183,13 @@ if($_['passwordChangeSupported']) {
        <label for="pass1" class="hidden-visually"><?php p($l->t('Current password')); ?>: </label>
        <input type="password" id="pass1" name="oldpassword"
                placeholder="<?php p($l->t('Current password'));?>"
-               autocomplete="off" autocapitalize="off" autocorrect="off" />
+               autocomplete="off" autocapitalize="none" autocorrect="off" />
        <div class="personal-show-container">
                <label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label>
                <input type="password" id="pass2" name="newpassword"
                        placeholder="<?php p($l->t('New password')); ?>"
                        data-typetoggle="#personal-show"
-                       autocomplete="off" autocapitalize="off" autocorrect="off" />
+                       autocomplete="off" autocapitalize="none" autocorrect="off" />
                <input type="checkbox" id="personal-show" name="show" /><label for="personal-show" class="personal-show-label"></label>
        </div>
        <input id="passwordbutton" type="submit" value="<?php p($l->t('Change password')); ?>" />
index 6f23d06cfa3fcfe30149498f1c836ceac54923c8..ca36b196ea81d9ed6dbaf0ac792484dde48c83c5 100644 (file)
@@ -2,14 +2,14 @@
        <form id="newuser" autocomplete="off">
                <input id="newusername" type="text"
                        placeholder="<?php p($l->t('Username'))?>"
-                       autocomplete="off" autocapitalize="off" autocorrect="off" />
+                       autocomplete="off" autocapitalize="none" autocorrect="off" />
                <input
                        type="password" id="newuserpassword"
                        placeholder="<?php p($l->t('Password'))?>"
-                       autocomplete="off" autocapitalize="off" autocorrect="off" />
+                       autocomplete="off" autocapitalize="none" autocorrect="off" />
                <input id="newemail" type="text" style="display:none"
                           placeholder="<?php p($l->t('E-Mail'))?>"
-                          autocomplete="off" autocapitalize="off" autocorrect="off" />
+                          autocomplete="off" autocapitalize="none" autocorrect="off" />
                <div class="groups"><div class="groupsListContainer multiselect button" data-placeholder="<?php p($l->t('Groups'))?>"><span class="title groupsList"></span><span class="icon-triangle-s"></span></div></div>
                <input type="submit" class="button" value="<?php p($l->t('Create'))?>" />
        </form>