<%= render partial: 'shared/header', locals: { links: [["ライセンス管理", license_path], ["ESET一覧", show_list_eset_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 %>


ライセンスID

<%= f.text_field :name %>

詳細

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

ライセンス期限

<%= history_field.date_field :date %>

最終更新日

<%= history_field.date_field :date2 %>

契約開始日

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






















更新日

使用ライセンス

顧客

詳細

<% @histories.each do |history| %> <%= f.fields_for :good_histories, history do |history_field| %>
<%= history_field.date_field :date %>
<%= history_field.text_field :number_in %>
<% tmp = "history" + history.id.to_s %> <% selected = history.memo4.to_i %>
<%= history_field.select :memo4, @customer,{include_blank: true, selected: selected}, class: "mySelect2", style: "width: 90%" %>
<%= history_field.text_field :memo %>
<%= link_to '削除', history, method: :delete, data: { confirm: "本当に削除しますか?"}, class: "w8-button l-blue del" %>
<% end %> <% end %>
<%= f.submit "更新", class: "w8-button l-blue small"%>
<% end %>