/[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

Contents of /trunk/web/templates/users/form

Parent Directory Parent Directory | Revision Log Revision Log


Revision 84 - (show annotations)
Tue Jun 13 23:30:38 2006 UTC (17 years, 10 months ago) by dpavlin
File size: 909 byte(s)
added password confirmation and import operator checkbox
1 <%args>
2 $user_id => 0
3 </%args>
4 <%init>
5 my $u = Transports::Model::User->new();
6 $u->load_by_cols( id => $user_id );
7 my $user = Jifty->web->new_action(
8 class => $u->id ? 'UpdateUser' : 'CreateUser',
9 record => $u
10 );
11 </%init>
12
13 <div class="boxed boxed-yellow">
14
15 <% $user_id ? 'Change user' : 'Add new user' %>
16
17 <% Jifty->web->form->start %>
18 <% Jifty->web->form->next_page( url => '/transports' ) %>
19 <% $user->form_field('name') %>
20 <% $user->form_field('email') %>
21 <% $user->form_field('password') %>
22 <% $user->form_field('password_confirm', label => 'Re-enter password' ) %>
23 <% $user->form_field('admin') %>
24 <% $user->form_field('can_import') %>
25 <% Jifty->web->form->submit( label => $user_id ? 'Update user' : 'Add user' ) %>
26 <% Jifty->web->form->end %>
27
28 % if ($user_id) {
29 <% Jifty->web->region(
30 name => "user-landscape",
31 path => "/users/landscape",
32 defaults => {
33 user_id => $user_id,
34 },
35 ) %>
36 % }
37
38 </div>

  ViewVC Help
Powered by ViewVC 1.1.26