<%= render partial: 'shared/header', locals: { links: [["カメラ一覧", show_camera_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.fields_for :good_histories, @histories.first do |history_field| %>

型式

<%= f.text_field :memo7 %>

接続用VPN

<%= f.text_field :memo3 %>

接続アドレス

<%= f.text_field :memo1 %>

user/pass

<%= f.text_field :memo8 %>

顧客名

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

設置日

<%= history_field.date_field :date2 %>

撤去日

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




















更新日

接続状況

テスト実施者

メモ

<% @histories.each do |history| %> <%= f.fields_for :good_histories, history do |history_field2| %>
<%= history_field2.date_field :date %>
<%= history_field2.text_field :memo2 %>
<%= history_field2.text_field :memo5 %>
<%= history_field2.text_field :memo6 %>
<%= link_to '削除', history, method: :delete, data: { confirm: "本当に削除しますか?"}, class: "w8-button l-blue del" %>
<% end %> <% end %>
<%= f.submit "更新", class: "w8-button l-blue small"%>
<% end %>