/[transports]/trunk/web/templates/users/form
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/users/form

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (hide annotations)
Mon Jun 5 14:06:58 2006 UTC (17 years, 11 months ago) by dpavlin
Original Path: trunk/web/templates/user_form
File size: 645 byte(s)
added landscapes (collection of source and destination clients) to the mix
instead of specifing users for sources (and destinations which wasn't
implemented anyway)
1 dpavlin 31 <%args>
2     $user
3 dpavlin 33 $user_id
4 dpavlin 31 </%args>
5     <&|/_elements/wrapper, title => 'Change user' &>
6    
7 dpavlin 40 % if (not Jifty->web->current_user->id) {
8     <% Jifty->web->redirect( '/login/user_form' ) %>
9     % } else {
10    
11 dpavlin 31 <% Jifty->web->form->start %>
12     <% Jifty->web->form->next_page( url => '/transports' ) %>
13     <% $user->form_field('name') %>
14     <% $user->form_field('email') %>
15     <% $user->form_field('password') %>
16     <% $user->form_field('admin') %>
17     <% Jifty->web->form->submit( label => 'Update user' ) %>
18     <% Jifty->web->form->end %>
19    
20 dpavlin 38 <% Jifty->web->region(
21 dpavlin 51 name => "user-on-landscape",
22     path => "/fragments/user_on_landscape",
23 dpavlin 38 defaults => {
24     user_id => $user_id,
25     },
26     ) %>
27 dpavlin 33
28 dpavlin 40 % }
29    
30 dpavlin 31 </&>

  ViewVC Help
Powered by ViewVC 1.1.26