Sha256: 88a811e836fe1544b96788f54fb302a1ccf065b8cd0a4ee84056afda359ef414

Contents?: true

Size: 1.51 KB

Versions: 17

Compression:

Stored size: 1.51 KB

Contents

<%= title t("product_category", scope: "activerecord.models.mechanize_store").pluralize %>

<% content_for :right do -%>
  <li class="active">
    <%= link_to t("new_product_category"), new_product_category_path %>
  </li>
<% end -%>

<table class="table table-striped">
  <thead>
    <tr>
      <th><%= sort_link @search, :id, t(:id, scope: "activerecord.attributes") %></th>
      <th><%= sort_link @search, :name, t(:name, scope: "activerecord.attributes.mechanize_store/product_category") %></th>
      <th><%= sort_link @search, :product_category, t(:product_category, scope: "activerecord.attributes.mechanize_store/product_category") %></th>
      <th colspan="3"></th>
    </tr>
  </thead>
  <tbody>
    <% @product_categories.each do |product_category| %>
      <tr>
        <td><%= product_category.id %></td>
        <td><%= product_category.name %></td>
        <td><%= product_category.product_category.name unless product_category.product_category.nil? %></td>
        <td>
          <%= link_to product_category do %>
            <i class="fa fa-file"></i>
          <% end -%>
        </td>
        <td>
          <%= link_to edit_product_category_path(product_category) do %>
            <i class="fa fa-edit"></i>
          <% end -%>
        </td>
        <td>
          <%= link_to product_category, method: :delete, data: { confirm: t(:are_you_sure) } do %>
            <i class="fa fa-trash"></i>
          <% end -%>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= will_paginate @product_categories %>

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
mechanize_store-0.0.19 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.18 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.17 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.16 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.15 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.14 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.13 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.12 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.11 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.10 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.8 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.7 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.6 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.5 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.4 app/views/mechanize_store/product_categories/index.html.erb
mechanize_store-0.0.3 app/views/mechanize_store/product_categories/index.html.erb
mechanize-store-0.0.2 app/views/mechanize_store/product_categories/index.html.erb