Skip to content
Snippets Groups Projects
Commit e8d17e4e authored by Raghu Nayyar's avatar Raghu Nayyar
Browse files

Personal Page Password Toggle Also Loads Well.

parent 59249ebc
No related branches found
No related tags found
No related merge requests found
...@@ -183,15 +183,16 @@ label.infield { cursor:text !important; top:1.05em; left:.85em; } ...@@ -183,15 +183,16 @@ label.infield { cursor:text !important; top:1.05em; left:.85em; }
#login form .errors { background:#fed7d7; border:1px solid #f00; list-style-indent:inside; margin:0 0 2em; padding:1em; } #login form .errors { background:#fed7d7; border:1px solid #f00; list-style-indent:inside; margin:0 0 2em; padding:1em; }
/* Show password toggle */ /* Show password toggle */
#show { #show { position:absolute; right:1em; top:.8em; float:right; }
position:absolute; right:1em; top:.8em; float:right; #show, #personal-show { display:none; }
display:none; #show + label { right:1em; top:1.25em!important; }
} #show:checked + label, #personal-show:checked + label { opacity:.8; }
#show + label { #show + label, #personal-show + label {
position:absolute!important; height:14px; width:24px; right:1em; top:1.25em!important; position:absolute!important; height:14px; width:24px;
background-image:url("../img/actions/toggle.png"); background-repeat:no-repeat; opacity:.3; background-image:url("../img/actions/toggle.png"); background-repeat:no-repeat; opacity:.3;
} }
#show:checked + label { opacity:.8; } #personal-show + label { margin-top:1em; }
#passwordbutton { margin-left:2.5em; }
/* Database selector */ /* Database selector */
#login form #selectDbType { text-align:center; } #login form #selectDbType { text-align:center; }
......
...@@ -24,8 +24,8 @@ if($_['passwordChangeSupported']) { ...@@ -24,8 +24,8 @@ 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" placeholder="<?php echo $l->t('Current password');?>" /> <input type="password" id="pass1" name="oldpassword" placeholder="<?php echo $l->t('Current password');?>" />
<input type="password" id="pass2" name="password" placeholder="<?php echo $l->t('New password');?>" data-typetoggle="#show" /> <input type="password" id="pass2" name="personal-password" placeholder="<?php echo $l->t('New password');?>" data-typetoggle="#personal-show" />
<input type="checkbox" id="show" name="show" /><label for="show"> <?php echo $l->t('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');?>" />
</fieldset> </fieldset>
</form> </form>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment