1 <% if @user.new_record? -%>
7 <form method="post" action="">
8 <%= hidden_field "user", "lock_version" %>
9 <table class="fieldset" cellpadding="0" cellspacing="0" border="0">
11 <td class="label"><label for="user_name">Name</label></td>
12 <td class="field"><%= text_field "user", "name", :class => 'textbox', :maxlength => 100 %></td>
13 <td class="help">Required.</td>
16 <td class="label"><label class="optional" for="user_email">E-mail</label></td>
17 <td class="field"><%= text_field "user", "email", :class => 'textbox', :maxlength => 255 %></td>
18 <td class="help">Optional. Please use a valid e-mail address.</td>
21 <td class="label"><label for="user_login">Username</label></td>
22 <td class="field"><%= text_field "user", "login", :class => 'textbox', :maxlength => 40 %></td>
23 <td class="help">At least 3 characters. Must be unique.</td>
26 <td class="label"><label for="user_password">Password</label></td>
27 <td class="field"><%= password_field "user", "password", :class => 'textbox', :value => '', :maxlength => 40 %></td>
28 <td class="help" rowspan="2">At least 5 characters. <% unless @user.new_record? %>Leave password blank for it to remain unchanged.<% end %></td>
31 <td class="label"><label for="user_password_confirmation">Confirm Password</label></td>
32 <td class="field"><%= password_field "user", "password_confirmation", :class => 'textbox', :value => '', :maxlength => 40 %></td>
35 <td class="label"><label for="user_admin">Roles</label></td>
37 <span class="checkbox"><%= check_box "user", "admin" %> <label for="user_admin">Administrator</label></span>
38 <span class="checkbox"><%= check_box "user", "developer" %> <label for="user_developer">Developer</label></span>
40 <td class="help">Roles restrict user privileges and turn parts of the administrative interface on or off.</td>
43 <td class="label"><label class="optional" for="user_notes">Notes</label></td>
44 <td class="field"><%= text_area "user", "notes", :size => '40x4' %></td>
45 <td class="help">Optional.</td>
48 <%= updated_stamp @user %>
50 <%= save_model_button(@user) %> <%= save_model_and_continue_editing_button(@user) %> or <%= link_to "Cancel", user_index_url %>
54 <%= focus 'user_name' %>