Last change
on this file since 7b7d827 was
7b7d827,
checked in by njw <njw@…>, 10 years ago
|
opened projects: hothotwrite and contact
|
-
Property mode set to
100644
|
File size:
848 bytes
|
Line | |
---|
1 | <h1>Listing contactgroups</h1> |
---|
2 | |
---|
3 | <table> |
---|
4 | <tr> |
---|
5 | <% for column in Contactgroup.content_columns %> |
---|
6 | <th><%= column.human_name %></th> |
---|
7 | <% end %> |
---|
8 | </tr> |
---|
9 | |
---|
10 | <% for contactgroup in @contactgroups %> |
---|
11 | <tr> |
---|
12 | <% for column in Contactgroup.content_columns %> |
---|
13 | <td><%=h contactgroup.send(column.name) %></td> |
---|
14 | <% end %> |
---|
15 | <td><%= link_to 'Send EMail', :action => 'send_email_to_contacts_from_group', :id => contactgroup %></td> |
---|
16 | <td><%= link_to 'Show', :action => 'show', :id => contactgroup %></td> |
---|
17 | <td><%= link_to 'Edit', :action => 'edit', :id => contactgroup %></td> |
---|
18 | <td><%= link_to 'Destroy', { :action => 'destroy', :id => contactgroup }, :confirm => 'Are you sure?', :method => :post %></td> |
---|
19 | </tr> |
---|
20 | <% end %> |
---|
21 | <tr> |
---|
22 | <td><%= link_to 'New contactgroup', :action => 'new' %></td> |
---|
23 | <td></td> |
---|
24 | <td></td> |
---|
25 | <td></td> |
---|
26 | </tr> |
---|
27 | </table> |
---|
28 | |
---|
29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.