]> Dogcows Code - chaz/chatty/blobdiff - root/tt/login.tt
add register template; improved message feedback
[chaz/chatty] / root / tt / login.tt
index d2b70e2dceb25c4079e342ddda45e10bbbb77836..d6ad93cecbdd06b4975c35d8f1926c48f3a9b0bb 100644 (file)
@@ -1,13 +1,24 @@
-<h1>Log In</h1>
-[% IF ! c.user_exists %]
+[% META title = 'Log In' -%]
+<h2>Log In</h2>
+[% IF ! c.user_exists -%]
 <form action="[% c.uri_for('login')  %]" method="post">
 <form action="[% c.uri_for('login')  %]" method="post">
-       <label for="handle">Username</label>
-       <input type="text" name="handle" id="handle">
-       <label for="password">Password</label>
-       <input type="password" name="password" id="password">
-       <input type="submit" value="Login">
+       <fieldset>
+               <p>
+                       <label for="handle">Username</label>
+                       <input type="text" name="handle" id="handle">
+               </p>
+               <p>
+                       <label for="password">Password</label>
+                       <input type="password" name="password" id="password">
+               </p>
+               <input type="submit" value="Login">
+       </fieldset>
 </form>
 </form>
-[% ELSE %]
+<h3>Don't have an account?</h3>
+<p>
+If you haven't yet registered, <a href="[% c.uri_for('register') %]">go do that now</a>!
+</p>
+[% ELSE -%]
 <p>You are already logged in.</p>
 <a href="[% c.uri_for('logout') %]">Log Out</a>
 <p>You are already logged in.</p>
 <a href="[% c.uri_for('logout') %]">Log Out</a>
-[% END %]
+[% END -%]
This page took 0.019358 seconds and 4 git commands to generate.