<% content_for :page_title do %> <%= Spree.t(:zones) %> <% end %> <% content_for :page_actions do %> <%= button_link_to Spree.t(:new_zone), new_object_url, class: "btn-success", icon: 'add.svg', id: 'admin_new_zone_link' %> <% end if can? :create, Spree::Zone %> <% if @zones.any? %>
<% @zones.each do |zone| %> <% end %>
<%= sort_link @search,:name, Spree.t(:name), title: 'zones_order_by_name_title' %> <%= sort_link @search,:description, Spree.t(:description), {}, {title: 'zones_order_by_description_title'} %> <%= Spree.t(:default_tax_zone) %>
<%= zone.name %> <%= zone.description %> <%= active_badge(zone.default_tax?) %> <%= link_to_edit(zone, no_text: true) if can? :edit, zone %> <%= link_to_delete(zone, no_text: true) if can? :delete, zone %>
<% else %>
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::Zone)) %>, <%= link_to(Spree.t(:add_one), new_object_url) if can? :create, Spree::Zone %>!
<% end %> <%= paginate @zones, theme: 'admin-twitter-bootstrap-4' %>