Sha256: c7ec4eb375ded71b04347a07b4e688e22ae78f424dc2aeeba03f291a0c9a6cb1

Contents?: true

Size: 1.59 KB

Versions: 5

Compression:

Stored size: 1.59 KB

Contents

<%= title "Listing Bounces#{"for #{@mailing.subject}" if @mailing.present?}" %>


<%= form_tag mail_manager.bounces_path, :id => 'search_form', :method => 'GET' do %>
 <label for="mailing_id">Mailing:</label><%= select_tag "mailing_id", options_for_select(@mailings.collect{|mailing| ["#{mailing.subject} (#{l mailing.status_changed_at if mailing.status_changed_at.present?}) (#{mailing.bounces.size})",mailing.id.to_s]},params[:mailing_id].to_i), :include_blank => true, :onChange => "$('#search_form').submit()" %><br />
  <label for="bounce_status">Status:</label><%= select_tag "bounce[status]", options_for_select([['Needs Attention','needs_manual_intervention'],['Resolved','resolved']],params[:bounce][:status]), :include_blank => true,  :onChange => "$('#search_form').submit()" %><br />
<% 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</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><%=h bounce.status rescue 'N/A' %></td>
      <td><%=l bounce.status_changed_at rescue nil %></td>
      <td><%=h bounce.comments %></td>
      <td><%= link_to "View", bounce, :id => "view_bounce_#{bounce.id}", :class => 'button' %></td>
    </tr>
  <% end %>
</table>

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mail_manager-3.2.5 app/views/mail_manager/bounces/index.html.erb
mail_manager-3.2.4 app/views/mail_manager/bounces/index.html.erb
mail_manager-3.2.2 app/views/mail_manager/bounces/index.html.erb
mail_manager-3.2.1 app/views/mail_manager/bounces/index.html.erb
mail_manager-3.2.0 app/views/mail_manager/bounces/index.html.erb