diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-02-07 18:04:14 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-02-07 18:07:38 +0100 |
commit | 8ca730f4c103a88ee26941772624163f236d3eab (patch) | |
tree | ee7a68d3c4bad26c9b1eb710481e4c85c4fa6996 /core | |
parent | 32e739f2ae2eebb7b169052463aa73fb452d5afb (diff) | |
download | nextcloud-server-8ca730f4c103a88ee26941772624163f236d3eab.tar.gz nextcloud-server-8ca730f4c103a88ee26941772624163f236d3eab.zip |
make show password toggle work for installation (once #1525 is fixed)
Diffstat (limited to 'core')
-rw-r--r-- | core/css/styles.css | 4 | ||||
-rw-r--r-- | core/templates/installation.php | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/core/css/styles.css b/core/css/styles.css index ebb59f08fa1..cefab2d49ff 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -149,11 +149,11 @@ input[type="submit"].enabled { background:#66f866; border:1px solid #5e5; -moz-b /* Icons for username and password fields to better recognize them */ #adminlogin, #adminpass, #user, #password { width:11.7em!important; padding-left:1.8em; } -#adminlogin+label+img, #adminpass+label+img, #user+label+img, #password-icon { +#adminlogin+label+img, #adminpass-icon, #user+label+img, #password-icon { position:absolute; left:1.25em; top:1.65em; opacity:.3; } -#adminpass+label+img, #password-icon { top:1.1em; } +#adminpass-icon, #password-icon { top:1.1em; } input[name="password-clone"] { padding-left:1.8em; width:11.7em !important; } /* Nicely grouping input field sets */ diff --git a/core/templates/installation.php b/core/templates/installation.php index 03c580c9b0b..f3d232b637e 100644 --- a/core/templates/installation.php +++ b/core/templates/installation.php @@ -40,9 +40,11 @@ <img class="svg" src="<?php echo image_path('', 'actions/user.svg'); ?>" alt="" /> </p> <p class="infield groupbottom"> - <input type="password" name="adminpass" id="adminpass" value="<?php print OC_Helper::init_var('adminpass'); ?>" required /> + <input type="password" name="adminpass" id="adminpass" value="<?php print OC_Helper::init_var('adminpass'); ?>" required data-typetoggle="#show" /> <label for="adminpass" class="infield"><?php echo $l->t( 'Password' ); ?></label> - <img class="svg" src="<?php echo image_path('', 'actions/password.svg'); ?>" alt="" /> + <img class="svg" id="adminpass-icon" src="<?php echo image_path('', 'actions/password.svg'); ?>" alt="" /> + <input type="checkbox" id="show" name="show" /> + <label for="show"></label> </p> </fieldset> |