Remove infield label, add password icon, fix layout

This commit is contained in:
Morris Jobke 2014-06-13 15:54:09 +02:00
parent d0b71dffca
commit cedca03ef5
3 changed files with 12 additions and 2 deletions

View File

@ -57,7 +57,8 @@ OC.Lostpassword = {
sendLinkSuccess : function(msg){ sendLinkSuccess : function(msg){
var node = OC.Lostpassword.getSendStatusNode(); var node = OC.Lostpassword.getSendStatusNode();
node.addClass('success').css({width:'auto'}); // update is the better success message styling
node.addClass('update').css({width:'auto'});
node.html(OC.Lostpassword.sendSuccessMsg); node.html(OC.Lostpassword.sendSuccessMsg);
}, },

View File

@ -0,0 +1,7 @@
#reset-password p {
position: relative;
}
#password-icon {
top: 20px;
}

View File

@ -1,8 +1,10 @@
<?php OCP\Util::addStyle('lostpassword', 'resetpassword'); ?>
<form action="<?php print_unescaped($_['link']) ?>" id="reset-password" method="post"> <form action="<?php print_unescaped($_['link']) ?>" id="reset-password" method="post">
<fieldset> <fieldset>
<p> <p>
<label for="password" class="infield"><?php p($l->t('New password')); ?></label> <label for="password" class="infield"><?php p($l->t('New password')); ?></label>
<input type="password" name="password" id="password" value="" required /> <input type="password" name="password" id="password" value="" placeholder="<?php p($l->t('New Password')); ?>" required />
<img class="svg" id="password-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt=""/>
</p> </p>
<input type="submit" id="submit" value="<?php p($l->t('Reset password')); ?>" /> <input type="submit" id="submit" value="<?php p($l->t('Reset password')); ?>" />
</fieldset> </fieldset>