shithub: werc

Download patch

ref: 3e632e8d708e5038a318f9f4525cb96916b7359b
parent: 7c69574c04c031d40389854231120ceaab39668d
author: uriel <uriel@engel.se.cat-v.org>
date: Fri Jan 30 10:18:07 EST 2009

Cosmetic improvements to login form and error msg.

--- a/lib/_users/login.tpl
+++ b/lib/_users/login.tpl
@@ -5,9 +5,9 @@
 % }
 % if not {
 %    if (~ $REQUEST_METHOD POST)
-%        echo 'Login failed!'
-<form method="POST">
-    <label>User name: <input type="text" name="user_name" /></label><br />
+%        echo '<div class="notify_errors">Login failed!</div>'
+<form method="POST" style="text-align: right; float: left;">
+    <label>User name: <input type="text" name="user_name" value="%($"post_arg_user_name%)"/></label><br />
     <lavel>User password: <input type="password" name="user_password" /></label><br />
     <input name="s" type="submit" value="Login" />
 </form>