]> git.decadent.org.uk Git - maypole.git/blob - examples/fancy_example/templates/factory/login
added post_chomp as default option for TT
[maypole.git] / examples / fancy_example / templates / factory / login
1 [% PROCESS macros %]
2 [% INCLUDE header %]
3 [% INCLUDE title %]
4 [% user_field = config.auth.user_field || "user" %]
5
6     <div id="title">You need to log in</div>
7
8     <div id="login">
9     [% IF login_error %]
10         <div class="error"> [% login_error | html %] </div>
11     [% END %]
12     <form method="post" action="[% base %]/[% request.path %]">
13     <fieldset>
14     <legend>Login</legend>
15         <label>
16             <span class="field">Username:</span>
17             <input name="[% user_field %]" type="text" value="[% cgi_params.$user_field | html %]" />
18         </label>
19         <label>
20             <span class="field">Password:</span>
21             <input name="password" type="password" value="[% cgi_params.passwrd | html %]"/>
22         </label>        
23         <input type="submit" name="login" value="Submit"/>
24     </fieldset>
25     </form>
26     </div>
27