<%= form_for(@estimate) do |estimate| %>

物件名

<%= estimate.text_field :name %>

日付

<%= estimate.date_field :date %>

注釈

<%= estimate.text_field :detail %>
<% if @uploaded_file %> <% @uploaded_file.each do |files| %>
<%= link_to files.upload_file_name, {action: 'download', controller: 'customers', id: files.id}, target: "_blank" %> <%= link_to '削除', files, method: :delete, data:{confirm: '本当に削除しますか?'}, class: "w8-button l-blue small"%> <% end %> <% end %> <% if @uploading_file %> <% @uploading_file.each do |content| %> <%= estimate.fields_for :contents, content do |c| %>
<%= c.file_field :upload_file, class: "file" %> <% end %> <% end %> <% end %>
<%= estimate.submit "æ›´æ–°", :name => "estimate_update", :customer_id => @customer.id, class: "w8-button l-blue normal" %>
<% end %>