<%= render 'spree/admin/shared/shipping_tabs' %> <% content_for :page_title do %> <%= Spree::ShippingMethod.model_name.human(count: :other) %> <% end %> <% content_for :page_actions do %> <% if can?(:create, Spree::ShippingMethod) %>
  • <%= button_link_to Spree.t(:new_shipping_method), new_object_url, :icon => 'plus', :id => 'admin_new_shipping_method_link' %>
  • <% end %> <% end %> <% if @shipping_methods.any? %> <% @shipping_methods.includes(:zones, :calculator).each do |shipping_method|%> <% end %>
    <%= Spree::ShippingMethod.human_attribute_name(:name) %> <%= Spree::Zone.model_name.human %> <%= Spree::Calculator.model_name.human %> <%= Spree::ShippingMethod.human_attribute_name(:display_on) %>
    <%= shipping_method.admin_name + ' / ' if shipping_method.admin_name.present? %><%= shipping_method.name %> <%= shipping_method.zones.collect(&:name).join(", ") if shipping_method.zones %> <%= shipping_method.calculator.description %> <%= shipping_method.display_on.blank? ? Spree.t(:both) : Spree.t(shipping_method.display_on.downcase.tr(" ", "_")) %> <% if can?(:update, shipping_method) %> <%= link_to_edit shipping_method, :no_text => true %> <% end %> <% if can?(:destroy, shipping_method) %> <%= link_to_delete shipping_method, :no_text => true %> <% end %>
    <% else %>
    <%= render 'spree/admin/shared/no_objects_found', resource: Spree::ShippingMethod, new_resource_url: new_object_url %>
    <% end %>