Sha256: 3b16b79c8fc20e5c21aeb6cedbe46e88f82a17605ca39b18dd1628a5863dbf27

Contents?: true

Size: 1.41 KB

Versions: 11

Compression:

Stored size: 1.41 KB

Contents

<% render :partial => 'spree/admin/shared/product_sub_menu' %>
<div class="toolbar" data-hook="toolbar">
  <ul class="actions">
    <li>
      <%= button_link_to t(:new_product_group), new_object_url, :icon => 'add', :id => 'new_product_group_link' %>
    </li>
  </ul>
  <br class="clear" />
</div>

<h1><%= t(:listing_product_groups) %></h1>

<table class="index" id='listing_product_groups' data-hook>
  <thead>
    <tr data-hook="product_group_header">
      <th><%= Spree::ProductGroup.human_attribute_name(:name) %></th>
      <th><%= Spree::ProductGroup.human_attribute_name(:url) %></th>
      <th><%= Spree::ProductGroup.human_attribute_name(:product_scopes) %></th>
      <th><%= Spree::ProductGroup.human_attribute_name(:product_count) %></th>
      <th><%= t(:action) %></th>
    </tr>
  </thead>
  <tbody>
    <% @product_groups.each do |pg| %>
      <tr id="<%= dom_id pg %>" data-hook="product_group_row">
        <td><%= link_to pg.name, [:admin, pg] %></td>
        <td><%= link_to pg_search_path(:product_group_name => pg.permalink), pg_search_path(:product_group_name => pg.permalink) %></td>
        <td><%== pg.product_scopes.map(&:to_sentence).join('<br />') %></td>
        <td><%= pg.products.count %></td>
        <td>
          <%= link_to_edit pg, :class => 'admin_edit_product_group' %> &nbsp; <%= link_to_delete pg %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>
<%= paginate @product_groups %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_core-1.0.7 app/views/spree/admin/product_groups/index.html.erb
spree_core-1.0.6 app/views/spree/admin/product_groups/index.html.erb
spree_core-1.0.4 app/views/spree/admin/product_groups/index.html.erb
spree_core-1.0.3 app/views/spree/admin/product_groups/index.html.erb
spree_core-1.0.2 app/views/spree/admin/product_groups/index.html.erb
spree_core-1.0.1 app/views/spree/admin/product_groups/index.html.erb
spree_core-1.0.0 app/views/spree/admin/product_groups/index.html.erb
spree_core-1.0.0.rc4 app/views/spree/admin/product_groups/index.html.erb
spree_core-1.0.0.rc3 app/views/spree/admin/product_groups/index.html.erb
spree_core-1.0.0.rc2 app/views/spree/admin/product_groups/index.html.erb
spree_core-1.0.0.rc1 app/views/spree/admin/product_groups/index.html.erb