Sha256: 6bb069735cf90d96d7b7dd7f705e0d5fcf0bc075fb91ce10b61f312f9434920d

Contents?: true

Size: 1.4 KB

Versions: 6

Compression:

Stored size: 1.4 KB

Contents

<% title "Listing Bounces for #{@mailing.try(:subject)}" %>


<%= form_tag mail_manager.bounces_path, :id => 'search_form', :method => 'GET' do %>
  Mailing: <%= select_tag "mailing_id", options_for_select(@mailings.collect{|mailing| ["#{mailing.subject} (#{l mailing.status_changed_at}) (#{mailing.bounce_count})",mailing.id.to_s]},params[:mailing_id].to_i), :include_blank => true, :onChange => "$('#search_form').submit()" %></br>
  Status:<%= select_tag "bounce[status]", options_for_select([['Needs Attention','needs_manual_intervention'],['Resolved','resolved']],params[:bounce][:status]), :include_blank => true,  :onChange => "$('#search_form').submit()" %>
<% end %>
<% if @bounces.length == 0 %>
  <h3>No bounces found for the Mailing with given status.</h3>
<% else %>

<p><%= will_paginate @bounces %></p>

<table class="list" cellpadding="1" cellspacing="0">
  <tr class="title">
    <td>Contact</td>
    <td>Status changed at</td>
    <td>Comments</td>
    <td>&nbsp;</td>
  </tr>
  <% for bounce in @bounces %>
    <tr class="<%= cycle('odd','even') %>">
      <td><%=h bounce.contact_full_name %>  <%=h bounce.contact_email_address %></td>
      <td><%=l bounce.status_changed_at rescue nil %></td>
      <td><%=h bounce.comments %></td>
      <td><%= link_to "View", bounce, :class => 'button' %><div class="linkbuttonEnding"></div></td>
    </tr>
  <% end %>
</table>

<p><%= will_paginate @bounces %></p>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mail_manager-3.0.0 app/views/mail_manager/bounces/index.html.erb
mail_manager-0.1.4 app/views/mail_manager/bounces/index.html.erb
mail_manager-0.1.2 app/views/mail_manager/bounces/index.html.erb
mail_manager-0.1.1 app/views/mail_manager/bounces/index.html.erb
mail_manager-0.1.0 app/views/mail_manager/bounces/index.html.erb
mail_manager-0.0.1 app/views/mail_manager/bounces/index.html.erb