<% content_for :page_title do %> <%= t('spree.active_sale.title.list') %> <% end %> <% content_for :page_actions do %>
  • <%= button_link_to t('spree.active_sale.link.new'), new_object_url, :icon => 'icon-plus', :id => 'admin_new_active_sale_link' %>
  • <% end %>
    <% @active_sales.each do |active_sale| %> <% end %>
    <%= sort_link @search, :name, t('spree.active_sale.active_record.name'), {}, { :title => 'active_sales_name_title' } %>
    <%= link_to active_sale.name, object_url(active_sale) %>

    <%= link_to_edit active_sale, :no_text => true %> <%= link_to_delete active_sale, :no_text => true %>

    <%= paginate @active_sales %> <% content_for :sidebar_title do %> <%= t(:search) %> <% end %> <% content_for :sidebar do %>
    <%= search_form_for [:admin, @search] do |f| %>
    <%= f.label t(:name) %>
    <%= f.text_field :name_cont, :class => 'fullwidth' %>
    <%= button t(:search), 'icon-search' %>
    <% end %>
    <% end %>