<%= render partial: 'shared/header', locals: { links: [["契約情報一覧", goods_show_lease_path(@id1, @id2, @id3, 1)], ["契約情報", '#']]} %>

<%= @good.name.truncate(20) %> 契約情報編集


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

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

<% end %>




カテゴリ

<%= f.select :good_type_id, @type_id, selected: @good.good_type_id %>

項目名

<%= f.text_field :name %>

途中解約日

<%= f.date_field :memo11, value: @good.memo11 %>

契約開始日

<%= f.date_field :memo2, value: @good.memo2 %>

契約満了日

<%= f.date_field :memo1, value: @good.memo1 %>

月額

<%= f.text_field :memo3 %>

顧客名

<% selected = @good.memo4.to_i %> <%= f.select :memo4, @customer, {include_blank: true, selected: selected}, class: "mySelect2", style: "width: 550px" %>

詳細

<%= f.text_field :memo %>
<% if @uploaded_file %> <% @uploaded_file.each do |files| %>
<%= link_to '削除', files, method: :delete, data:{confirm: '本当に削除しますか?'}, class: "w8-button l-blue small"%> <% end %> <% end %> <%= f.fields_for :goods, @good do |g| %> <% if @uploading_file %> <% @uploading_file.each do |content| %> <%= g.fields_for :contents, content do |c| %>
<%= c.file_field :upload_file, class: "file" %> <% end %> <% end %> <% end %> <% end %>






















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