Sha256: f42487ca91a170797fbadb1e3fd18e0b06cb609b357fd0a3826f58c543283b56
Contents?: true
Size: 1.89 KB
Versions: 1
Compression:
Stored size: 1.89 KB
Contents
<% content_for :page_title do %> <%= Spree::ShippingMethod.model_name.human(count: :many) %> <% end %> <% content_for :page_actions do %> <%= button_link_to Spree.t(:new_shipping_method), new_object_url, :class => "btn-success", :icon => 'add', :id => 'admin_new_shipping_method_link' %> <% end %> <% if @shipping_methods.any? %> <table class="table" id='listing_shipping_methods'> <thead> <tr data-hook="admin_shipping_methods_index_headers"> <th><%= Spree.t(:name) %></th> <th><%= Spree.t(:zone) %></th> <th><%= Spree.t(:calculator) %></th> <th class="text-center"><%= Spree.t(:display) %></th> <th data-hook="admin_shipping_methods_index_header_actions" class="actions"></th> </tr> </thead> <tbody> <% @shipping_methods.includes(:zones, :calculator).each do |shipping_method|%> <tr id="<%= spree_dom_id shipping_method %>" data-hook="admin_shipping_methods_index_rows"> <td><%= shipping_method.admin_name + ' / ' if shipping_method.admin_name.present? %><%= shipping_method.name %></td> <td><%= shipping_method.zones.collect(&:name).join(", ") if shipping_method.zones %></td> <td><%= shipping_method.calculator.description %></td> <td class="text-center"><%= shipping_method.display_on.blank? ? Spree.t(:both) : Spree.t(shipping_method.display_on) %></td> <td data-hook="admin_shipping_methods_index_row_actions" class="actions actions-2 text-right"> <%= link_to_edit shipping_method, :no_text => true %> <%= link_to_delete shipping_method, :no_text => true %> </td> </tr> <% end %> </tbody> </table> <% else %> <div class="alert alert-info no-objects-found"> <%= Spree.t(:no_resource_found, resource: Spree::ShippingMethod.model_name.human(count: :many)) %>, <%= link_to Spree.t(:add_one), new_object_url %>! </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_backend-3.0.0.rc1 | app/views/spree/admin/shipping_methods/index.html.erb |