]> Dogcows Code - chaz/chatty/blob - root/tt/register.tt
switch to FormHandler for validation
[chaz/chatty] / root / tt / register.tt
1 [% META title = 'Register' -%]
2 [% BLOCK js -%]
3 $('#form').validationEngine();
4 $('#form button[type=reset]').click(function() {
5 $('#form').validationEngine('hideAll');
6 });
7 [% END -%]
8 <h2>Register</h2>
9 [% IF ! c.user_exists -%]
10 <!--
11 <form id="form" action="[% c.uri_for('register') %]" method="post">
12 <fieldset>
13 <p>
14 <label>Email</label>
15 <input id="email" class="validate[custom[email]]" type="text" name="email">
16 </p>
17 <p>
18 <label>Username*</label>
19 <input id="handle" class="validate[required]" type="text" name="handle">
20 </p>
21 <p>
22 <label>Password*</label>
23 <input id="password1" class="validate[required]" type="password" name="password">
24 </p>
25 <p>
26 <label>Confirm*</label>
27 <input id="password2" class="validate[required]" type="password" name="password">
28 </p>
29 <button type="submit">Register</button>
30 <button type="reset">Reset</button>
31 </fieldset>
32 </form>
33 -->
34 [% form.render %]
35 [% ELSE -%]
36 <p>You are already registered and logged in. There is no need to register again.</p>
37 [% END -%]
This page took 0.028899 seconds and 4 git commands to generate.