[Pkg-owncloud-commits] [owncloud] 86/223: Remove infield label, add password icon, fix layout
David Prévot
taffit at moszumanska.debian.org
Sun Jun 22 01:54:09 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit cedca03ef524376135e9fa232879bd1df0da0c9d
Author: Morris Jobke <hey at morrisjobke.de>
Date: Fri Jun 13 15:54:09 2014 +0200
Remove infield label, add password icon, fix layout
---
core/js/lostpassword.js | 3 ++-
core/lostpassword/css/resetpassword.css | 7 +++++++
core/lostpassword/templates/resetpassword.php | 4 +++-
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js
index 19e2cf5..b0bd0e0 100644
--- a/core/js/lostpassword.js
+++ b/core/js/lostpassword.js
@@ -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);
},
diff --git a/core/lostpassword/css/resetpassword.css b/core/lostpassword/css/resetpassword.css
new file mode 100644
index 0000000..012af67
--- /dev/null
+++ b/core/lostpassword/css/resetpassword.css
@@ -0,0 +1,7 @@
+#reset-password p {
+ position: relative;
+}
+
+#password-icon {
+ top: 20px;
+}
diff --git a/core/lostpassword/templates/resetpassword.php b/core/lostpassword/templates/resetpassword.php
index 0184ace..118fe78 100644
--- a/core/lostpassword/templates/resetpassword.php
+++ b/core/lostpassword/templates/resetpassword.php
@@ -1,8 +1,10 @@
+<?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>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list