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