source: de.wigbels.ruby/contact/app/views/admincontact/list.rhtml@ d94f363

Last change on this file since d94f363 was 7b7d827, checked in by njw <njw@…>, 11 years ago

opened projects: hothotwrite and contact

  • Property mode set to 100644
File size: 737 bytes
Line 
1<h1>Listing contacts</h1>
2
3<table>
4 <tr>
5 <% for column in Contact.content_columns %>
6 <th><%= column.human_name %></th>
7 <% end %>
8 </tr>
9
10<% for contact in @contacts %>
11 <tr>
12 <% for column in Contact.content_columns %>
13 <td><%=h contact.send(column.name) %></td>
14 <% end %>
15 <td><%= link_to 'Show', :action => 'show', :id => contact %></td>
16 <td><%= link_to 'Edit', :action => 'edit', :id => contact %></td>
17 <td><%= link_to 'Destroy', { :action => 'destroy', :id => contact }, :confirm => 'Are you sure?', :method => :post %></td>
18 </tr>
19<% end %>
20 <tr>
21 <td><%= link_to 'New contact', :action => 'new' %></td>
22 <td></td>
23 <td></td>
24 <td></td>
25 <td></td>
26 <td></td>
27 <td></td>
28 <td></td>
29 </tr>
30</table>
31
Note: See TracBrowser for help on using the repository browser.