52e9ee2ed2e4245060385244cbdbb600bf3f3e1f
[depot.git] / edit.html.erb
1 <div class="depot-form">
2
3 <% form_for(@user) do |f| %>
4 <%= f.error_messages %>
5
6 <fieldset>
7 <legend>Update user details</legend>
8
9 <div>
10 <%= f.label :name %>:
11 <%= f.text_field :name, :size => 40 %>
12 </div>
13
14 <div>
15 <%= f.label :user_password, 'Password' %>:
16 <%= f.password_field :password, :size => 40 %>
17 </div>
18 <div>
19 <%= f.label :user_password_confirmation, 'Confirm' %>:
20 <%= f.password_field :password_confirmation, :size => 40 %>
21 </div>
22 <div>
23 <%= f.submit "Update" %>
24 </div>
25
26 </fieldset>
27 <% end %>
28
29 <%= link_to 'Show', @user %> |
30 <%= link_to 'Back', users_path %>
31 </div>