<%= render partial: 'shared/header', locals: { links: [["顧客一覧", grep_show_path(" ")], [@customer.name.truncate(6), @customer], ["完了報告一覧", "#"]]} %> <%= render 'sidebar' %>
<%= render partial: 'title', locals: { title: @customer.name + " 完了報告一覧"} %>


工事内容

日付

担当者

請求

在庫使用

添付ファイル

<% i = 0 %> <% @list.each do |report| %>

<%= report.name %>

<%= report.date %>

<%= report.detail %>

<%= report.memo1 %>

<% if report.memo2 == "在庫使用有:未入力" %>
<%= link_to '在庫入力', goods_show_path(6,3,8,1), class: "w8-button l-blue del2" %>
<% else %>

<%= report.memo2 %>

<% end %>
<% @dl_list[i].each do |link| %>
<%= link_to link[0] , { action: 'download', id: link[1] }, target: "_blank" %>
<% end %> <% i += 1 %>
<%= link_to '詳細', report_lookup_path(@customer, report), class: "w8-button l-blue small2" %> <%= link_to '編集', report_edit_path(@customer, report), class: "w8-button l-blue small2" %> <%= link_to '削除', report, method: :delete, data: { confirm: "本当に削除しますか?"}, class: "w8-button l-blue small2" %>
<% end %>

<%= will_paginate @list, previous_label: "前ページ", next_label: "次ページ" %> <%= link_to '新規', report_edit_path(@customer, @report_new), class: "w8-button l-blue small" %>