Skip to content
Snippets Groups Projects
Commit cedca03e authored by Morris Jobke's avatar Morris Jobke
Browse files

Remove infield label, add password icon, fix layout

parent d0b71dff
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,8 @@ OC.Lostpassword = {
sendLinkSuccess : function(msg){
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);
},
......
#reset-password p {
position: relative;
}
#password-icon {
top: 20px;
}
<?php OCP\Util::addStyle('lostpassword', 'resetpassword'); ?>
<form action="<?php print_unescaped($_['link']) ?>" id="reset-password" method="post">
<fieldset>
<p>
<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>
<input type="submit" id="submit" value="<?php p($l->t('Reset password')); ?>" />
</fieldset>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment