<%= 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 %>
<%= order @search, :by => :name, :as => t("name") %> <%= order @search, :by => :email, :as => 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) %>

<%= form_for @search do |f| %> <%- locals = {:f => f} %> <%= hook :admin_subscribers_index_search, locals do %>

<%= t("name") %>
<%= f.text_field :name_contains, :size=>18 %>

<%= t("email") %>
<%= f.text_field :email_contains, :size=>18 %>

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

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

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