物件名
日付
注釈
添付ファイル
<% @customer.warrantys.each do |warranty| %>
<% end %>
<%= warranty.name %>
<%= warranty.date %>
<%= warranty.detail %>
<% warranty.contents.each do |c| %>
<% next if !c.upload_file %>
<%= link_to '編集', warranty_edit_path(@customer, warranty), class: "button button8" %>
<%= link_to '削除', warranty, method: :delete, data: { confirm: "本当に削除しますか?"}, class: "w8-button l-blue small" %>
<%= link_to c.upload_file_name.truncate(20), { action: 'download', id: c.id}, target: "_blank" %>
<% end %>
<%= link_to '新規', warranty_edit_path(@customer, @warranty_new), class: "w8-button l-blue small" %>