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

VPN情報

<%= f.text_field :memo2 %>

アドレス/ユーザー/パスワード

<%= f.text_field :memo3 %>
<%= 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 %>
<% end %>
































更新日

通信状態

詳細

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