1 <h1>User Preferences</h1>
3 <form method="post" action="">
4 <table class="fieldset" cellpadding="0" cellspacing="0" border="0">
6 <td class="label"><label for="user_password">Password</label></td>
7 <td class="field"><%= password_field "user", "password", :class => 'textbox', :value => '', :maxlength => 40 %></td>
8 <td class="help" rowspan="2">At least 5 characters. <% unless @user.new_record? %>Leave password blank for it to remain unchanged.<% end %></td>
11 <td class="label"><label for="user_password_confirmation">Confirm Password</label></td>
12 <td class="field"><%= password_field "user", "password_confirmation", :class => 'textbox', :value => '', :maxlength => 40 %></td>
15 <td class="label"><label for="user_email">E-mail</label></td>
16 <td class="field"><%= text_field "user", "email", :class => 'textbox', :maxlength => 255 %></td>
17 <td class="help">Optional.</td>
21 <%= submit_tag 'Save Changes' %> or <%= link_to "Cancel", admin_url %>
25 <script type="text/javascript">
27 Field.focus('user_password');