<%= render 'admin/shared/spree_mail_sub_nav' %>

<%= t('listing_subscribers') %>

<%= hook :admin_subscribers_index_headers do %> <% end %> <% @subscribers.each do |subscriber|%> <%- locals = {:subscriber => subscriber} %> <%= hook :admin_subscribers_index_rows, locals do %> <% end %> <% end %>
<%= sort_link @search, :name, t('name') %> <%= sort_link @search, :email, t('email') %> <%= hook :admin_subscribers_index_header_actions %>
<%=link_to subscriber.name, object_url(subscriber) %> <%= mail_to subscriber.email %> <%= hook :admin_subscribers_index_row_actions, locals do %> <%= link_to_edit subscriber %>   <%= link_to_delete subscriber %>   <%= render 'options', :subscriber => subscriber %> <% end %>
<%= will_paginate(:previous_label => "« #{t('previous')}", :next_label => "#{t('next')} »") %> <% content_for :sidebar do %>

<%= t('search') %>

<% @subscriber = Subscriber.metasearch %> <%= form_for [:admin, @subscriber] do |f| %> <%- locals = {:f => f} %> <%= hook :admin_subscribers_index_search, locals do %>


<%= f.text_field :name_like, :size => 25 %>


<%= f.text_field :email_like, :size => 25 %>

<% end %> <%= hook :admin_subscribers_index_search_buttons, locals do %>

<%= button t('search') %>

<% end %> <% end %>
<% end %>