%= render partial: 'shared/header', locals:
{ links: [["車両管理", show_car_path(1)], ["データ編集", '#']]} %>
<%= @good.name.truncate(30) %> データ編集
<%= form_for(@good) do |f| %>
<% if @good.errors.any? %>
<% @histories.each do |history| %>
<%= f.fields_for :good_histories, history do |history_field| %>
<%= history_field.date_field :date %>
<%= history_field.date_field :date2 %>
<%= history_field.text_field :memo6 %>
<%= history_field.text_field :memo7 %>
<%= history_field.text_field :memo8 %>
<%= history_field.text_field :memo %>
<%= link_to '削除', history, method: :delete, data: { confirm: "本当に削除しますか?"}, class: "w8-button l-blue del" %>
<% end %>
<% end %>