]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixing the Lost Password Screen
authorJulian Müller <julian.mueller.ffb@kabelmail.de>
Tue, 29 Oct 2013 00:29:38 +0000 (01:29 +0100)
committerJulian Müller <julian.mueller.ffb@kabelmail.de>
Tue, 29 Oct 2013 00:29:38 +0000 (01:29 +0100)
core/lostpassword/css/lostpassword.css [new file with mode: 0644]
core/lostpassword/templates/lostpassword.php

diff --git a/core/lostpassword/css/lostpassword.css b/core/lostpassword/css/lostpassword.css
new file mode 100644 (file)
index 0000000..bcb2d85
--- /dev/null
@@ -0,0 +1,26 @@
+#body-login
+input[type="text"],
+input[type="submit"] {
+       margin-left: 0;
+}
+
+input[type="text"] {
+       padding-right: 19px;
+}
+
+#body-login
+input[type="submit"] {
+       text-align: center;
+       width: 170px;
+       height: 45px;
+       padding-top: 7px;
+       padding-bottom: 7px;
+}
+
+fieldset {
+       margin-left: 2px;
+}
+
+.white {
+       color: white;
+}
index f5fdb1fb2b3919fe88943ee8c0fcf40eeeb3d285..5363b93e32b692f086e948017bc08fe31d1cd6d6 100644 (file)
@@ -1,5 +1,8 @@
-<?php if ($_['requested']): ?>
-       <div class="success"><p>
+<?php
+//load the file we need
+OCP\Util::addStyle('lostpassword', 'lostpassword');
+       if ($_['requested']): ?>
+               <div class="success"><p>
        <?php
                print_unescaped($l->t('The link to reset your password has been sent to your email.<br>If you do not receive it within a reasonable amount of time, check your spam/junk folders.<br>If it is not there ask your local administrator .'));
        ?>
        <form action="<?php print_unescaped(OC_Helper::linkToRoute('core_lostpassword_send_email')) ?>" method="post">
                <fieldset>
                        <?php if ($_['error']): ?>
-                               <div class="errors"><p>
+                               <div class="errors"><p align="center">
                                <?php print_unescaped($l->t('Request failed!<br>Did you make sure your email/username was right?')); ?>
                                </p></div>
                        <?php endif; ?>
-                       <?php print_unescaped($l->t('You will receive a link to reset your password via Email.')); ?>
+                       <div class="white"><?php print_unescaped($l->t('You will receive a link to reset your password via Email.')); ?></div>
                        <p class="infield">
                                <input type="text" name="user" id="user" placeholder="" value="" autocomplete="off" required autofocus />
                                <label for="user" class="infield"><?php print_unescaped($l->t( 'Username' )); ?></label>
@@ -24,7 +27,7 @@
                                        <?php print_unescaped($l->t('Yes, I really want to reset my password now')); ?><br/><br/>
                                <?php endif; ?>
                        </p>
-                       <input type="submit" id="submit" value="<?php print_unescaped($l->t('Request reset')); ?>" />
+                       <input type="submit" id="submit" value="<?php print_unescaped($l->t('Zurücksetzen')); ?>" />
                </fieldset>
        </form>
 <?php endif; ?>