<%= render 'spree/admin/shared/areas_tabs' %> <% content_for :page_title do %> <%= Spree::Zone.model_name.human(count: :other) %> <% end %> <% content_for :page_actions do %> <% if can?(:create, Spree::Zone) %>
  • <%= button_link_to Spree.t(:new_zone), new_object_url, :icon => 'plus', :id => 'admin_new_zone_link' %>
  • <% end %> <% end %> <%= paginate @zones, theme: "solidus_admin" %> <% if @zones.any? %> <% @zones.each do |zone| %> <% end %>
    <%= sort_link @search,:name, Spree::Zone.human_attribute_name(:name), :title => 'zones_order_by_name_title' %> <%= sort_link @search,:description, Spree::Zone.human_attribute_name(:description), {}, {:title => 'zones_order_by_description_title'} %> <%= Spree.t(:default_tax) %>
    <%= zone.name %> <%= zone.description %> <%= zone.default_tax? ? Spree.t(:say_yes) : Spree.t(:say_no) %> <% if can?(:update, zone) %> <%= link_to_edit zone, :no_text => true %> <% end %> <% if can?(:destroy, zone) %> <%= link_to_delete zone, :no_text => true %> <% end %>
    <% else %>
    <%= render 'spree/admin/shared/no_objects_found', resource: Spree::Zone, new_resource_url: new_object_url %>
    <% end %> <%= paginate @zones, theme: "solidus_admin" %>