Sha256: 301ccb1d3e012a66b8129f4377a65317853695d9619a197514f5244d7ddd3c2c

Contents?: true

Size: 1.49 KB

Versions: 30

Compression:

Stored size: 1.49 KB

Contents

<%= render 'spree/admin/shared/shipping_tabs' %>

<% admin_breadcrumb(t('spree.settings')) %>
<% admin_breadcrumb(t('spree.admin.tab.shipping')) %>
<% admin_breadcrumb(plural_resource_name(Spree::ShippingCategory)) %>

<% content_for :page_actions do %>
  <% if can?(:create, Spree::ShippingCategory) %>
    <li>
      <%= link_to t('spree.new_shipping_category'), new_object_url, class: 'btn btn-primary' %>
    </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">
      <td><%= shipping_category.name %></td>
      <td class="actions">
        <% if can?(:update, 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="no-objects-found">
    <%= render 'spree/admin/shared/no_objects_found',
                 resource: Spree::ShippingCategory,
                 new_resource_url: new_object_url %>
  </div>
<% end %>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
solidus_backend-4.4.1 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.4.0 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.3.4 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.2.4 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.1.5 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.3.3 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.3.2 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.1.4 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.3.1 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.3.0 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.2.3 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.1.3 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.0.4 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-3.4.6 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.0.3 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.1.2 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.2.2 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-3.4.5 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.2.1 app/views/spree/admin/shipping_categories/index.html.erb
solidus_backend-4.2.0 app/views/spree/admin/shipping_categories/index.html.erb