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