Sha256: 7c484931b2499f4de51cd55ddb5281c4e2097c2aac5caf8deeb5a3177b2b38a3

Contents?: true

Size: 1.27 KB

Versions: 33

Compression:

Stored size: 1.27 KB

Contents

<% content_for :page_title do %>
  <%= plural_resource_name(Spree::ShippingCategory) %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:new_shipping_category), new_object_url, :class => "btn-success", :icon => 'add' %>
<% end if can? :create, Spree::ShippingCategory %>

<% if @shipping_categories.any? %>
  <table class="table">
    <thead>
      <tr data-hook="categories_header">
        <th><%= Spree.t(: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 actions-2 text-right">
          <%= link_to_edit(shipping_category, :no_text => true) if can? :edit, shipping_category %>
          <%= link_to_delete(shipping_category, :no_text => true) if can? :edit, shipping_category %>
        </td>
      </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alert alert-info no-objects-found">
    <%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::ShippingCategory)) %>,
    <%= link_to(Spree.t(:add_one), new_object_url) if can? :create, Spree::ShippingCategory %>!
  </div>
<% end %>

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.13 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.12 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.11 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.10 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.9 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.8 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.7 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.6 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.5 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.4 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.3 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.2 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.0.10 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.1 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.0 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.0.9 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/shipping_categories/index.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/shipping_categories/index.html.erb