]> Dogcows Code - chaz/chatty/blob - root/tt/login.tt
better client-side form validation; layout tweaks
[chaz/chatty] / root / tt / login.tt
1 [% META title = 'Log In' -%]
2 <p>
3 This app lets you chat with other registered chatters. Cool! Once you are
4 registered and logged-in, you will be allowed to join a chat room and get
5 chatty.
6 </p>
7 <h1>Log In</h1>
8 [% IF ! c.user_exists -%]
9 <!--
10 <form action="[% c.uri_for('login') %]" method="post">
11 <fieldset>
12 <p>
13 <label for="handle">Username</label>
14 <input type="text" name="handle" id="handle">
15 </p>
16 <p>
17 <label for="password">Password</label>
18 <input type="password" name="password" id="password">
19 </p>
20 <input type="submit" value="Login">
21 </fieldset>
22 </form>
23 -->
24 [% form.render %]
25 <h2>Register</h2>
26 <p>
27 If you don't already have an account, you should
28 <a href="[% c.uri_for('register') %]">go register</a> now!
29 </p>
30 [% ELSE -%]
31 <p>You are already logged in.</p>
32 <a href="[% c.uri_for('logout') %]">Log Out</a>
33 [% END -%]
This page took 0.03029 seconds and 4 git commands to generate.