Sha256: d3389ea4cc98151504d434d29e95eba76d86b04031b926e062f48059c701a31d
Contents?: true
Size: 1.42 KB
Versions: 6
Compression:
Stored size: 1.42 KB
Contents
<% title "Listing Subsciptions for #{@mailing_list.name} " %> <%= content_for :page_navigation do %> <div> <%= link_to 'New Subscription', mail_manager.new_mailing_list_subscription_path(@mailing_list), :class => 'button' %><div class='linkbuttonEnding'></div> <% end %> <%= form_tag mail_manager.mailing_list_subscriptions_path(@mailing_list), :id => 'search_form', :method => 'GET' do %> <label class="form">Search:</label> <%= text_field_tag 'search[term]', params[:search][:term], :class => "text" %> Status:<%= select_tag "search[status]", options_for_select([['','']]+@valid_statuses,params[:search][:status]), :onChange => "$('search_form').submit()" %> <% end %> <%= will_paginate @subscriptions %> <% if @subscriptions.length == 0 %> No subscriptions found for your query. <% else %> <table class="list" border="0" cellpadding="0" cellspacing="0"> <tr class="title"> <td class="item"><b>Contact</b></td> <td><b>Company</b></td> <td></td> </tr> <% @subscriptions.each do |subscription| %> <tr class="<%= cycle('odd','even') %>"> <td class="item"><%=h subscription.contact.full_name %> <%=h subscription.email_address %></td> <td><%=h subscription.contactable.try(:client_company).try(:name) %></td> <td><%= link_to 'Edit', mail_manager.edit_subscription_path(subscription), :class => 'button' %><div class="linkbuttonEnding"></div></td> </tr> <% end %> </table> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems