-
-
Notifications
You must be signed in to change notification settings - Fork 572
Expand file tree
/
Copy path_request_row.html.erb
More file actions
28 lines (28 loc) · 1.12 KB
/
_request_row.html.erb
File metadata and controls
28 lines (28 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<tr>
<td class="date"><%= request_row.created_at.strftime("%m/%d/%Y") %></td>
<td><%= request_row.partner.name %> </td>
<td>
<% partner_user = @requests_info.partner_users.find { |pu| pu.id == request_row.partner_user_id } %>
<%= "#{partner_user&.formatted_email}" %>
</td>
<td class="<%= quota_column_class(request_row.total_items, request_row.partner) %> text-right">
<%= request_row.total_items %>
<%= quota_display(request_row.partner) %>
</td>
<td>
<%= request_row.comments %>
</td>
<td>
<abbr class="text-decoration-none" title="<%= request_row.request_type&.humanize %>">
<%= request_row.request_type_label %>
</abbr>
</td>
<td>
<%= render partial: "status", locals: {status: request_row.status} %>
</td>
<td class="text-right">
<%= view_button_to request_path(request_row) %>
<%= cancel_button_to new_request_cancelation_path(request_id: request_row.id), method: :get, data: { disable_with: "Please wait..." }, size: "xs", type: "danger" %>
<%= print_button_to print_picklist_request_path(request_row), { format: :pdf, text: "Print", size: "xs" } %>
</td>
</tr>