Sha256: 9afa8ab8dee23cfc908b5808f7dcbf8cf54f8d09b8ba918d5879b827e6bafd19
Contents?: true
Size: 1.53 KB
Versions: 6
Compression:
Stored size: 1.53 KB
Contents
<%= render 'spree/admin/shared/shipping_tabs' %> <% content_for :page_title do %> <%= Spree::ShippingCategory.model_name.human(count: :other) %> <% end %> <% content_for :page_actions do %> <% if can?(:create, Spree::ShippingCategory) %> <li> <%= button_link_to Spree.t(:new_shipping_category), new_object_url, :icon => 'plus' %> </li> <% end %> <% end %> <% if @shipping_categories.any? %> <table class="index"> <colgroup> <col style="width: 85%"> <col style="width: 15%"> </colgroup> <thead> <tr data-hook="categories_header"> <th><%= Spree::ShippingCategory.human_attribute_name(:name) %></th> <th class="actions"></th> </tr> </thead> <tbody> <% @shipping_categories.each do |shipping_category|%> <tr id="<%= spree_dom_id shipping_category %>" data-hook="category_row" class="<%= cycle('odd', 'even')%>"> <td class="align-center" style="width:350px;"><%= shipping_category.name %></td> <td class="actions"> <% if can?(:udpate, shipping_category) %> <%= link_to_edit shipping_category, :no_text => true %> <% end %> <% if can?(:destroy, shipping_category) %> <%= link_to_delete shipping_category, :no_text => true %> <% end %> </td> </tr> <% end %> </tbody> </table> <% else %> <div class="alpha twelve columns no-objects-found"> <%= render 'spree/admin/shared/no_objects_found', resource: Spree::ShippingCategory, new_resource_url: new_object_url %> </div> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems