% 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? %>
<%= 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 %> |