Skip to content

Commit 078c879

Browse files
committed
Feature: Adds links to UI to access print_picklist
1 parent 68d917f commit 078c879

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

app/views/requests/_request_row.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@
2323
<td class="text-right">
2424
<%= view_button_to request_path(request_row) %>
2525
<%= button_to 'Cancel', new_request_cancelation_path(request_id: request_row.id), method: :get, class: 'btn btn-danger btn-xs' %>
26-
</td>
26+
<%= print_button_to print_picklist_request_path(request_row), { format: :pdf, text: "Print", size: "xs" } %>
27+
</td>
2728
</tr>

app/views/requests/show.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
<div class="card-footer flex flex-row space-x-2">
109109
<%= submit_button_to start_request_path(@request), {text: "Fulfill request", size: "md"} unless @request.distribution %>
110110
<%= view_button_to(distribution_path(@request.distribution), {text: "View Associated Distribution", size: "md"}) if @request.distribution %>
111+
<%= print_button_to print_picklist_request_path(@request), { format: :pdf, text: "Print", size: "md" } %>
111112
<%= button_to 'Cancel', new_request_cancelation_path(request_id: @request.id),
112113
method: :get, form_class: 'd-inline', class: 'btn btn-danger btn-md' %>
113114
</div>

0 commit comments

Comments
 (0)