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