Description:
[web] small fix in template git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@132 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r59:1cd81845c101 - - 1 file changed: 4 inserted, 4 deleted

@@ -1,53 +1,53
1 1 <% content_for :head do %>
2 2 <%= stylesheet_link_tag 'scaffold' %>
3 3 <% end %>
4 4
5 5 <h1>Listing users</h1>
6 6
7 7 <div style="border: solid 1px; margin: 2px">
8 8 <b>Quick add</b>
9 9 <% form_tag :action => 'create' do %>
10 10 <table border="0">
11 11 <tr>
12 - <td><label for="user_name">Login</label></td>
13 - <td><label for="user_name">Full name</label></td>
12 + <td><label for="user_login">Login</label></td>
13 + <td><label for="user_full_name">Full name</label></td>
14 14 <td><label for="user_alias">Alias</label></td>
15 - <td><label for="password">Password</label></td>
16 - <td><label for="password_confirmation">confirm</label></td>
15 + <td><label for="user_password">Password</label></td>
16 + <td><label for="user_password_confirmation">confirm</label></td>
17 17 </tr>
18 18 <tr>
19 19 <td><%= text_field 'user', 'login', :size => 10 %></td>
20 20 <td><%= text_field 'user', 'full_name', :size => 30 %></td>
21 21 <td><%= text_field 'user', 'alias', :size => 10 %></td>
22 22 <td><%= password_field 'user', 'password', :size => 10 %></td>
23 23 <td><%= password_field 'user', 'password_confirmation', :size => 10 %></td>
24 24 <td><%= submit_tag "Create" %></td>
25 25 </tr></table>
26 26 <% end %>
27 27
28 28 </div>
29 29
30 30 <table>
31 31 <tr>
32 32 <% for column in User.content_columns %>
33 33 <th><%= column.human_name %></th>
34 34 <% end %>
35 35 </tr>
36 36
37 37 <% for user in @users %>
38 38 <tr>
39 39 <% for column in User.content_columns %>
40 40 <td><%=h user.send(column.name) %></td>
41 41 <% end %>
42 42 <td><%= link_to 'Show', :action => 'show', :id => user %></td>
43 43 <td><%= link_to 'Edit', :action => 'edit', :id => user %></td>
44 44 <td><%= link_to 'Destroy', { :action => 'destroy', :id => user }, :confirm => 'Are you sure?', :method => :post %></td>
45 45 </tr>
46 46 <% end %>
47 47 </table>
48 48
49 49
50 50 <br />
51 51
52 52 <%= link_to 'New user', :action => 'new' %>
53 53 <%= link_to 'New list of users', :action => 'new_list' %>
You need to be logged in to leave comments. Login now