%= title "Listing Messages for #{@mailing.subject}" %>
<%= content_for :subnav do %>
- <%= link_to 'Back', mail_manager.mailings_path %>
<% end %>
<%= will_paginate @messages %>
<%= form_tag mail_manager.mailing_messages_path(@mailing), :id => 'search_form', :method => 'GET' do %>
<%= label_tag :message_status, "Status:" %><%= select_tag "message[status]", options_for_select(@valid_statuses,params[:message][:status]), :onChange => "$('#search_form').submit()" %>
<% end %>
<% if @messages.length == 0 %>
No messages found for your query.
<% else %>
Contact |
Errors |
<% @messages.each do |message| %>
<%=h message.full_name %> <%=h message.email_address %> |
<%=h message.result %> |
<% end %>
<% end %>