<%= render partial: 'shared/header', locals: { links: [["ライセンス管理", license_path], ["UPS一覧", show_ups_path(1)], ["データ編集", '#']]} %>

<%= @good.name.truncate(30) %> データ編集


<%= form_for(@good) do |f| %> <% if @good.errors.any? %>

<%= pluralize(@good.errors.count, "error") %> prohibited this customer from being saved:

<% end %>


型式

<%= f.text_field :memo %>

メモ

<%= f.text_field :memo2 %>
<%= f.fields_for :good_histories, @histories.first do |history_field| %>

顧客名

<%= history_field.select :memo4, @customer,{include_blank: true}, class: "mySelect2", style: "width: 90%" %>

設置日

<%= history_field.date_field :date2 %>

撤去日

<%= history_field.date_field :date4 %>

更新期限

<%= history_field.date_field :date3 %>

更新日

<%= history_field.date_field :date %>
<% end %>




















<%= f.submit "更新", class: "w8-button l-blue small"%>
<% end %>