/[transports]/trunk/web/templates/login
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/web/templates/login

Parent Directory Parent Directory | Revision Log Revision Log


Revision 85 - (hide annotations)
Thu Jun 15 22:08:07 2006 UTC (17 years, 11 months ago) by dpavlin
File size: 417 byte(s)
move most of login for /transports/create into dispatcher (I'm still not
sure that this is the best place for it in Jifty), tried to remove /login
from dispatcher, but next_page doesn't work any more
1 dpavlin 85 <%init>
2     my $action = Jifty->web->new_action(class => 'Login', monkier => 'loginbox' );
3     </%init>
4 dpavlin 5 <&|/_elements/wrapper, title => 'Login' &>
5    
6     % if (not Jifty->web->current_user->id) {
7     <h2>Login</h2>
8 dpavlin 85 <% Jifty->web->form->start %>
9 dpavlin 5 <% $action->form_field('email') %>
10     <% $action->form_field('password') %>
11 dpavlin 85 <% Jifty->web->form->submit(label => 'Login') %>
12 dpavlin 5 <% Jifty->web->form->end %>
13     % }
14     % else {
15 dpavlin 85 You're logged in.
16 dpavlin 5 % }
17     </&>

  ViewVC Help
Powered by ViewVC 1.1.26