<%= render partial: 'shared/header', locals:{ links: [["在庫一覧", '#']]}%>
<% if false %> <% @type_id1.each do |type1| %> <%= link_to type1[0], goods_show_path(type1[1], -1, -1,1), class: "w8-button grey small3" if @id1 == type1[1] %> <%= link_to type1[0], goods_show_path(type1[1], -1, -1,1), class: "w8-button l-blue small3" if @id1 != type1[1] %> <% end %> <% end %> <% @type_id2.each do |type2| %> <%= link_to type2[0], goods_show_path(@id1, type2[1], -1,1), class: "w8-button grey small3" if @id2 == type2[1] %> <%= link_to type2[0], goods_show_path(@id1, type2[1], -1,1), class: "w8-button l-blue small3" if @id2 != type2[1] %> <% end %>


<% @type_id3.each do |type3| %> <%= link_to type3[0], goods_show_path(@id1, @id2, type3[1],1), class: "w8-button grey small3" if @id3 == type3[1] %> <%= link_to type3[0], goods_show_path(@id1, @id2, type3[1],1), class: "w8-button l-blue small3" if @id3 != type3[1] %> <% end %>








<%= @category.name %>一覧


<%= render partial: 'indexform' %>
<%= form_for(@good) do |f| %>

カテゴリ

<%= f.select :good_type_id, @type_id3, selected: @id3 %>

項目名

<%= f.text_field :name %>
<%= f.submit "項目追加", class: "w8-button l-blue small"%>
<% end %> <% if false %> <%= form_tag({controller: "goods", action: "import", method: "post", type: @good.good_type_id}, {multipart: true}) do %> <%= file_field_tag :file %> <%= submit_tag "オブジェクトを一括インポート" %> <% end %> <% end %>