aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/admin_request/show.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin_request/show.rhtml')
-rw-r--r--app/views/admin_request/show.rhtml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/admin_request/show.rhtml b/app/views/admin_request/show.rhtml
index 423e6d19a..0c9ed1fe9 100644
--- a/app/views/admin_request/show.rhtml
+++ b/app/views/admin_request/show.rhtml
@@ -75,6 +75,7 @@
<% for column in IncomingMessage.content_columns %>
<th><%= column.human_name %></th>
<% end %>
+ <th>Actions</th>
</tr>
<% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>
@@ -83,6 +84,15 @@
<% for column in IncomingMessage.content_columns.map { |c| c.name } %>
<td><%=h incoming_message.send(column) %></td>
<% end %>
+ <td>
+ <% form_tag '../destroy_incoming' do %>
+ <div>
+ <%= hidden_field_tag 'incoming_message_id', incoming_message.id %>
+ <%= submit_tag "Destroy" %>
+ </div>
+ <% end %>
+
+ </td>
</tr>
<% end %>
</table>